Fix update_job

This commit is contained in:
2022-10-01 00:49:28 +06:00
parent 3cfaf0596b
commit 5b45b75982

View File

@@ -504,7 +504,7 @@ pub async fn update() -> Result<(), Box<dyn std::error::Error>> {
pub async fn cron_jobs() -> Result<(), JobSchedulerError> {
let job_scheduler = JobScheduler::new().await.unwrap();
let update_job = match Job::new_async("* 0 5 * * *", |_uuid, _l| Box::pin(async {
let update_job = match Job::new_async("0 0 5 * * *", |_uuid, _l| Box::pin(async {
match update().await {
Ok(_) => log::info!("Updated"),
Err(err) => log::info!("Update err: {:?}", err),