Update cron schedule to run at the top of the hour and set timezone to Europe/Warsaw
This commit is contained in:
4
index.js
4
index.js
@@ -146,8 +146,8 @@ async function init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sendMessage("Zaczynam monitoring cen");
|
sendMessage("Zaczynam monitoring cen");
|
||||||
const task = cron.schedule("* */3 * * *", async () => {
|
const task = cron.schedule("0 */3 * * *", init, {
|
||||||
await init();
|
timezone: "Europe/Warsaw",
|
||||||
});
|
});
|
||||||
|
|
||||||
task.execute();
|
task.execute();
|
||||||
|
|||||||
Reference in New Issue
Block a user