diff --git a/functions/api/mod-queue/list.ts b/functions/api/mod-queue/list.ts index f183cf5..9a829cc 100644 --- a/functions/api/mod-queue/list.ts +++ b/functions/api/mod-queue/list.ts @@ -9,9 +9,9 @@ export async function onRequestGet(context: RequestContext) { report: "reports", }; const types: { [k: string]: string } = { - appeal: `appeal`, - gma: `gameappeal`, - report: `report`, + appeal: "appeal", + gma: "gameappeal", + report: "report", }; const permissions: { [k: string]: number[] } = { appeal: [1 << 0, 1 << 1], @@ -61,7 +61,7 @@ export async function onRequestGet(context: RequestContext) { ); } - return new Response(JSON.stringify(items.filter((v) => v === null)), { + return new Response(JSON.stringify(items.filter((v) => v !== null)), { headers: { "content-type": "application/json", },