mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 03:18:06 +03:00
22 lines
600 B
TypeScript
22 lines
600 B
TypeScript
import { RecalcGameProfiles } from "./recalc-game-profiles";
|
|
import CreateLogCtx from "lib/logger/logger";
|
|
import { RecalcAllScores, UpdateAllPBs } from "utils/calculations/recalc-scores";
|
|
import { RecalcSessions } from "utils/calculations/recalc-sessions";
|
|
|
|
const logger = CreateLogCtx(__filename);
|
|
|
|
(async () => {
|
|
await RecalcAllScores();
|
|
await UpdateAllPBs();
|
|
await RecalcGameProfiles();
|
|
await RecalcSessions();
|
|
|
|
logger.info(`Completely done!`, () => {
|
|
process.exit(0);
|
|
});
|
|
})().catch((err: unknown) => {
|
|
logger.error(`Failed to sync state.`, { err }, () => {
|
|
process.exit(1);
|
|
});
|
|
});
|