checkpoint: 14

This commit is contained in:
zkldi
2023-01-19 16:39:31 +00:00
parent a3208f3ce5
commit 7c3650dd26
36 changed files with 203 additions and 173 deletions
+2 -2
View File
@@ -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;