mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-04-26 07:49:22 -05:00
Add data updaters to the cron jobs
This commit is contained in:
parent
f7dafefc31
commit
2e62e4a4c7
|
|
@ -1,6 +1,8 @@
|
||||||
import { CronJob } from "cron";
|
import { CronJob } from "cron";
|
||||||
|
import { updateAll } from "./data/index.mjs";
|
||||||
import { warmCache } from "./splatnet/index.mjs";
|
import { warmCache } from "./splatnet/index.mjs";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
new CronJob('5,20,35,50 * * * *', warmCache, null, true);
|
new CronJob('5,20,35,50 * * * *', warmCache, null, true);
|
||||||
|
new CronJob('10 0 * * * *', updateAll, null, true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user