Fixes #306 - Fix Cron expression not running.

This commit is contained in:
Jackson D 2022-02-06 01:38:04 -05:00
parent 750891cffa
commit 1fff824957

View file

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