mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-03-21 17:54:13 -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 { 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user