changing the cron to every min
This commit is contained in:
parent
3fef736821
commit
15932a0c9d
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -57,7 +57,7 @@ class App {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const app = new 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');
|
console.log('Running startCronJob at 10:00 AM Jerusalem time');
|
||||||
app.startCronJob().catch((error) => {
|
app.startCronJob().catch((error) => {
|
||||||
console.error("Error in scheduled cron job:", error.message);
|
console.error("Error in scheduled cron job:", error.message);
|
||||||
|
|
|
@ -64,7 +64,7 @@ class App {
|
||||||
|
|
||||||
const app = new App();
|
const app = new App();
|
||||||
|
|
||||||
cron.schedule('0 10 * * *', () => {
|
cron.schedule('* * * * *', () => {
|
||||||
console.log('Running startCronJob at 10:00 AM Jerusalem time');
|
console.log('Running startCronJob at 10:00 AM Jerusalem time');
|
||||||
app.startCronJob().catch((error) => {
|
app.startCronJob().catch((error) => {
|
||||||
console.error("Error in scheduled cron job:", error.message);
|
console.error("Error in scheduled cron job:", error.message);
|
||||||
|
|
Loading…
Reference in a new issue