From ee0cf73b69e9e5fb4ca5bb850050906efbdaaa03 Mon Sep 17 00:00:00 2001 From: Devadathan M B Date: Mon, 27 Nov 2023 17:46:41 +0530 Subject: [PATCH] decrease cron timing --- src/cron/notifyUserCron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cron/notifyUserCron.ts b/src/cron/notifyUserCron.ts index b4bfaaf..3c642a2 100644 --- a/src/cron/notifyUserCron.ts +++ b/src/cron/notifyUserCron.ts @@ -16,7 +16,7 @@ const delayBetweenBatches = 1000 * 60; async function notifyUserCron(db: Firestore, bot: Telegraf) { console.log("Cron job initialized"); - cron.schedule("*/15 * * * *", async () => { + cron.schedule("*/10 * * * *", async () => { const startTime = new Date().toString(); console.log(`🔴 Cron job started at ${startTime}`); readFile("data.json", "utf8", async (err, data) => {