Add bms chart orphaning support

This commit is contained in:
zkldi
2021-09-07 07:16:25 +01:00
parent 304959849e
commit e89ee76dc6
10 changed files with 247 additions and 16 deletions
+9 -2
View File
@@ -1,6 +1,13 @@
import db from "external/mongo/db";
import CreateLogCtx from "lib/logger/logger";
import { ChartDocument, IDStrings, IDStringToGame, integer, SongDocument } from "tachi-common";
import {
ChartDocument,
IDStrings,
IDStringToGame,
integer,
OrphanChart,
SongDocument,
} from "tachi-common";
import { GetNextCounterValue } from "utils/db";
import { FilterQuery } from "mongodb";
@@ -23,7 +30,7 @@ export async function HandleOrphanQueue<I extends IDStrings>(
game: IDStringToGame[I],
chartDoc: ChartDocument<I>,
songDoc: SongDocument<IDStringToGame[I]>,
orphanMatchCriteria: FilterQuery<ChartDocument<I>>,
orphanMatchCriteria: FilterQuery<OrphanChart<I>>,
queueSize: integer,
userID: integer,
chartName: string