It'll work this time I swear

This commit is contained in:
Regalijan 2024-05-12 01:50:21 -04:00
parent d265436555
commit 0a68358aac
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -37,7 +37,7 @@ export async function onRequestGet(context: RequestContext): Promise<any> {
AND approved ${showClosed ? "IS NOT" : "IS"} NULL
ORDER BY created_at DESC LIMIT 25;`,
)
.bind(before, !Number(showClosed))
.bind(before)
.all();
rows.results = rows.results.map((r) => {
r.user = JSON.parse(r.user);