From 5ca71a43c22880ed13174432742def573f311f1d Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:38 -0400 Subject: [PATCH] Oops --- functions/api/mod-queue/list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/mod-queue/list.ts b/functions/api/mod-queue/list.ts index a264f3d..d25d963 100644 --- a/functions/api/mod-queue/list.ts +++ b/functions/api/mod-queue/list.ts @@ -59,7 +59,7 @@ export async function onRequestGet(context: RequestContext) { WHERE created_at < ? ${entryType === "gma" ? "" : "AND open = ?"} ORDER BY created_at DESC LIMIT 25;`, ) - .bind(before, Number(!showClosed)) + .bind(before, entryType === "gma" ? undefined : Number(!showClosed)) .all(); if (results)