changing the cron to every min

This commit is contained in:
Kfir Dayan 2024-02-04 15:31:58 +02:00
parent 3fef736821
commit 15932a0c9d
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View file

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

View file

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