From 15932a0c9d919228f66d80c08f3796bd67452d57 Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Sun, 4 Feb 2024 15:31:58 +0200 Subject: [PATCH] changing the cron to every min --- dist/index.js | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index b0e651b..3871a8d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -57,7 +57,7 @@ class App { } } const app = new App(); -node_cron_1.default.schedule('0 10 * * *', () => { +node_cron_1.default.schedule('* * * * *', () => { console.log('Running startCronJob at 10:00 AM Jerusalem time'); app.startCronJob().catch((error) => { console.error("Error in scheduled cron job:", error.message); diff --git a/src/index.ts b/src/index.ts index 9da2556..933e81d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -64,7 +64,7 @@ class App { const app = new App(); -cron.schedule('0 10 * * *', () => { +cron.schedule('* * * * *', () => { console.log('Running startCronJob at 10:00 AM Jerusalem time'); app.startCronJob().catch((error) => { console.error("Error in scheduled cron job:", error.message);