1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-05 02:45:18 +02:00

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 // Update weather data every 15 minutes
const weatherJob = schedule.scheduleJob( const weatherJob = schedule.scheduleJob(
'updateWeather', 'updateWeather',
'0 */15 * * * *', '*/15 * * * *',
async () => { async () => {
try { try {
const weatherData = await getExternalWeather(); const weatherData = await getExternalWeather();
@ -30,7 +30,7 @@ module.exports = async function () {
// Clear old weather data every 4 hours // Clear old weather data every 4 hours
const weatherCleanerJob = schedule.scheduleJob( const weatherCleanerJob = schedule.scheduleJob(
'clearWeather', 'clearWeather',
'0 5 */4 * * *', '5 */4 * * *',
async () => { async () => {
clearWeatherData(); clearWeatherData();
} }