From 345953fff34be527d52c1e5eb1dfd699bb45e7ae Mon Sep 17 00:00:00 2001 From: im-calvin Date: Tue, 31 Oct 2023 18:54:43 -0700 Subject: [PATCH] change runImmediately to true --- src/utils/schedule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/schedule.ts b/src/utils/schedule.ts index 4033825..4152ff6 100644 --- a/src/utils/schedule.ts +++ b/src/utils/schedule.ts @@ -158,7 +158,7 @@ export async function scrape() { } }); - const job = new SimpleIntervalJob({ minutes: intervalTime, runImmediately: false }, task); + const job = new SimpleIntervalJob({ minutes: intervalTime, runImmediately: true }, task); scheduler.addSimpleIntervalJob(job); transaction.finish();