const CronJob = require('cron').CronJob;
const splatnet = require('./splatnet');

console.info('Starting periodic tasks...');

// Run every day at 2min 30sec after the hour
new CronJob('30 2 * * * *', () => {
    splatnet.update();
}, null, true);

const CronJob = require('cron').CronJob;
const splatnet = require('./splatnet');

console.info('Starting periodic tasks...');

// Run every day at 0min 30sec after the hour
new CronJob('30 0 * * * *', () => {
    splatnet.update();
}, null, true);

Update data closer to the top of the hour
Update data closer to the top of the hour

This will help make Salmon Run times show up sooner.