mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 03:18:06 +03:00
Add bms chart orphaning support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user