Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Parse those too
  • Loading branch information
regalijan committed Jan 25, 2025
1 parent 0349c3a commit 5e6d8ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/api/inactivity/[id].ts
Expand Up @@ -50,6 +50,8 @@ export async function onRequestGet(context: RequestContext) {

if (!result) return jsonError("Inactivity notice does not exist", 404);

result.decisions = JSON.parse(result.decisions as string);
result.departments = JSON.parse(result.departments as string);
result.user = JSON.parse(result.user as string);

return jsonResponse(JSON.stringify(result));
Expand Down

0 comments on commit 5e6d8ac

Please sign in to comment.