1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-24 21:39:36 +02:00

Clear weather data job. Fixed bug with displaying bookmark icons on mobile devices

This commit is contained in:
unknown 2021-06-10 01:51:59 +02:00
parent 80c807bfba
commit 936da301b8
3 changed files with 27 additions and 3 deletions

View file

@ -1,5 +1,6 @@
const schedule = require('node-schedule');
const getExternalWeather = require('./getExternalWeather');
const clearWeatherData = require('./clearWeatherData');
const Sockets = require('../Sockets');
// Update weather data every 15 minutes
@ -14,6 +15,6 @@ const weatherJob = schedule.scheduleJob('updateWeather', '0 */15 * * * *', async
})
// Clear old weather data every 4 hours
const weatherCleanerJob = schedule.scheduleJob('clearWeather', '0 0 */4 * * *', async () => {
console.log('clean')
const weatherCleanerJob = schedule.scheduleJob('clearWeather', '0 5 */4 * * *', async () => {
clearWeatherData();
})