mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-27 13:47:56 -05:00
Splatoon 3 XP badges
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
||||
|
||||
7
scripts/sync-xp-badges.ts
Normal file
7
scripts/sync-xp-badges.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* eslint-disable no-console */
|
||||
import "dotenv/config";
|
||||
import { syncXPBadges } from "~/features/badges";
|
||||
|
||||
syncXPBadges();
|
||||
|
||||
console.log("Synced XP badges");
|
||||
Reference in New Issue
Block a user