Skip to content

Commit

Permalink
Add data updaters to the cron jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
misenhower committed Sep 10, 2022
1 parent f7dafef commit 2e62e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/cron.mjs
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 2e62e4a

Please sign in to comment.