Add the Salmon Run calendar to the hourly update script

This commit is contained in:
Matt Isenhower
2017-08-11 12:08:07 -07:00
parent e5b4e3d30a
commit 081b7dac2a

View File

@@ -1,9 +1,11 @@
const CronJob = require('cron').CronJob;
const splatnet = require('./splatnet');
const salmoncalendar = require('./salmoncalendar');
console.info('Starting periodic tasks...');
// Run every day at 0min 30sec after the hour
new CronJob('30 0 * * * *', () => {
splatnet.update();
salmoncalendar.update();
}, null, true);