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:
parent
750891cffa
commit
1fff824957
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue