mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 03:48:14 +03:00
checkpoint: 14
This commit is contained in:
@@ -116,12 +116,12 @@ export async function DeorphanIfInQueue<I extends GPTString>(
|
||||
game: IDStringToGame[I],
|
||||
orphanMatchCriteria: FilterQuery<OrphanChart<I>>
|
||||
): Promise<ChartDocument<I> | null> {
|
||||
const orphanChart = (await db["orphan-chart-queue"].findOne(
|
||||
const orphanChart = await db["orphan-chart-queue"].findOne(
|
||||
{ idString, ...orphanMatchCriteria },
|
||||
{
|
||||
projectID: true,
|
||||
}
|
||||
)) as WithID<OrphanChart<I>> | null;
|
||||
);
|
||||
|
||||
if (!orphanChart) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user