diff --git a/server/jobs/scheduler.ts b/server/jobs/scheduler.ts index 1ebe7e1..a66c0a1 100644 --- a/server/jobs/scheduler.ts +++ b/server/jobs/scheduler.ts @@ -122,7 +122,7 @@ function schedule(expr: string, job: Job): void { true, ); - cron.schedule(expr, task.run); + cron.schedule(expr, () => task.run()); tasks['' + id] = task; }