mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-20 01:55:26 -05:00
Migrate SQ match queries to Kysely (#2782)
This commit is contained in:
@@ -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)`);
|
||||
|
||||
Reference in New Issue
Block a user