From 8f4947c8acab6a68d51ebf5013b0f4e5924fdcd9 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sun, 12 May 2024 01:43:55 -0400 Subject: [PATCH] Fix wrong column name --- functions/api/mod-queue/[type]/list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/mod-queue/[type]/list.ts b/functions/api/mod-queue/[type]/list.ts index f020a51..daa395a 100644 --- a/functions/api/mod-queue/[type]/list.ts +++ b/functions/api/mod-queue/[type]/list.ts @@ -34,7 +34,7 @@ export async function onRequestGet(context: RequestContext): Promise { `SELECT * FROM appeals WHERE created_at < ? - AND open ${showClosed ? "IS NOT" : "IS"} NULL + AND approved ${showClosed ? "IS NOT" : "IS"} NULL ORDER BY created_at DESC LIMIT 25;`, ) .bind(before, !Number(showClosed))