Add data updaters to the cron jobs

This commit is contained in:
Matt Isenhower 2022-09-10 13:11:44 -07:00
parent f7dafefc31
commit 2e62e4a4c7

View File

@ -1,6 +1,8 @@
import { CronJob } from "cron";
import { updateAll } from "./data/index.mjs";
import { warmCache } from "./splatnet/index.mjs";
export default function() {
new CronJob('5,20,35,50 * * * *', warmCache, null, true);
new CronJob('10 0 * * * *', updateAll, null, true);
}