mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 15:45:36 +01:00
Fix update_job
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user