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);