Update cron schedule to run at the top of the hour and set timezone to Europe/Warsaw

This commit is contained in:
Norbert Maciaszek
2025-11-15 22:16:27 +01:00
parent a64edaf22f
commit 1f41be62f1

View File

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