fix: print how many tokens were cleaned
This commit is contained in:
parent
5268db4833
commit
a7a1daaabe
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue