These need to still be parsed
All checks were successful
Test, Build, Deploy / Test, Build, and Deploy (push) Successful in 58s
Test, Build, Deploy / Create Sentry Release (push) Successful in 6s

This commit is contained in:
2026-04-12 01:34:32 -04:00
parent 1f2a8770a1
commit 546842c4dd

View File

@@ -76,6 +76,11 @@ export async function onRequestGet(context: RequestContext): Promise<any> {
SELECT *, (SELECT COUNT(*) FROM json_each(decisions)) AS decision_count FROM inactivity_notices WHERE created_at < datetime(${before} / 1000, 'unixepoch') AND decision_count ${showClosed ? raw("=") : raw("!=")} json_array_length(departments);`;
rows.map((r) => {
// These come back as strings when using $queryRaw
r.decisions = JSON.parse(r.decisions as string);
r.departments = JSON.parse(r.departments as string);
r.user = JSON.parse(r.user as string);
delete (r.user as JsonObject).email;
return r;