From 1fff82495754b3c704fb9790d8798d8bd1cc0106 Mon Sep 17 00:00:00 2001 From: Jackson D Date: Sun, 6 Feb 2022 01:38:04 -0500 Subject: [PATCH] Fixes #306 - Fix Cron expression not running. --- utils/jobs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/jobs.js b/utils/jobs.js index e509ef5..d686111 100644 --- a/utils/jobs.js +++ b/utils/jobs.js @@ -13,7 +13,7 @@ module.exports = async function () { // Update weather data every 15 minutes const weatherJob = schedule.scheduleJob( 'updateWeather', - '0 */15 * * * *', + '*/15 * * * *', async () => { try { const weatherData = await getExternalWeather(); @@ -30,7 +30,7 @@ module.exports = async function () { // Clear old weather data every 4 hours const weatherCleanerJob = schedule.scheduleJob( 'clearWeather', - '0 5 */4 * * *', + '5 */4 * * *', async () => { clearWeatherData(); }