Migrate SQ match queries to Kysely (#2782)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-02-21 13:48:18 +02:00
committed by GitHub
parent 3a6dc4ace5
commit 7b71abfe53
24 changed files with 1240 additions and 606 deletions

View File

@@ -1,7 +1,7 @@
import "dotenv/config";
import { db } from "~/db/sql";
import * as Seasons from "~/features/mmr/core/Seasons";
import { addDummySkill } from "~/features/sendouq-match/queries/addDummySkill.server";
import * as SQMatchRepository from "~/features/sendouq-match/SQMatchRepository.server";
import { dateToDatabaseTimestamp } from "~/utils/dates";
import { logger } from "~/utils/logger";
@@ -36,7 +36,7 @@ async function main() {
.execute();
for (const match of allMatches) {
addDummySkill(match.id);
await SQMatchRepository.lockMatchWithoutSkillChange(match.id);
}
logger.info(`All done with nuking the season (${allMatches.length} matches)`);