diff --git a/src/persistence.rs b/src/persistence.rs index 3408770..d063eb1 100644 --- a/src/persistence.rs +++ b/src/persistence.rs @@ -27,6 +27,8 @@ pub async fn purge_expired_tokens(db: &DatabaseConnection, lifetime: Duration) - entities::token::Column::CreatedAt.lt(Utc::now() - lifetime) ).exec(db).await?; + info!("purged {} tokens", res.rows_affected); + Ok(res.rows_affected) }