Fix wrong column name

This commit is contained in:
Regalijan 2024-05-12 01:43:55 -04:00
parent e00b7e8c55
commit 8f4947c8ac
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -34,7 +34,7 @@ export async function onRequestGet(context: RequestContext): Promise<any> {
`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))