Files
zkldi_Tachi/server/scripts/state-sync/sync-state.ts
T
2021-12-22 08:24:33 +00:00

17 lines
478 B
TypeScript

import CreateLogCtx from "lib/logger/logger";
import { RecalcAllScores, UpdateAllPBs } from "utils/calculations/recalc-scores";
import { RecalcSessions } from "utils/calculations/recalc-sessions";
import { CreateGameProfiles } from "./recalc-game-profiles";
const logger = CreateLogCtx(__filename);
(async () => {
await RecalcAllScores();
await UpdateAllPBs();
await CreateGameProfiles();
await RecalcSessions();
logger.info(`Completely done!`);
process.exit(0);
})();