Splatoon 3 XP badges

This commit is contained in:
Kalle
2023-07-01 13:14:29 +03:00
parent efb95bd93f
commit 4162bb76e2
35 changed files with 91 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import { sql } from "~/db/sql";
import type { XRankPlacement } from "~/db/types";
import { type MainWeaponId, mainWeaponIds } from "~/modules/in-game-lists";
import { xRankSchema } from "./schemas";
import { syncXPBadges } from "~/features/badges";
const rawJsonNumber = process.argv[2]?.trim();
invariant(rawJsonNumber, "jsonNumber is required (argument 1)");
@@ -50,6 +51,7 @@ async function main() {
}
addPlacements(placements);
syncXPBadges();
console.log(`done reading in ${placements.length} placements`);
}

View File

@@ -0,0 +1,7 @@
/* eslint-disable no-console */
import "dotenv/config";
import { syncXPBadges } from "~/features/badges";
syncXPBadges();
console.log("Synced XP badges");