KV to D1 migration (this is totally gonna break something)

This commit is contained in:
2024-05-12 01:25:46 -04:00
parent a2b3391bda
commit e00b7e8c55
24 changed files with 1835 additions and 669 deletions

View File

@ -9,5 +9,13 @@ export async function onRequestGet(context: RequestContext) {
if (!success) return jsonError("Unable to retrieve appeals", 500);
return jsonResponse(JSON.stringify(results));
return jsonResponse(
JSON.stringify(
results.map((result) => {
result.user = JSON.parse(result.user as string);
return result;
}),
),
);
}