Resolve some TODOs
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
use crate::app_config::AppConfig;
|
||||
use crate::services::tokens_service;
|
||||
use std::time::Duration;
|
||||
|
||||
/// The "cron" of the project
|
||||
@ -20,6 +21,9 @@ pub async fn main_routine() {
|
||||
|
||||
async fn exec_routine() -> anyhow::Result<()> {
|
||||
// TODO : remove orphan attachment
|
||||
// TODO : remove outdated tokens
|
||||
|
||||
// Remove expired tokens
|
||||
tokens_service::cleanup().await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user