Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Convert decisions and departments objects to proper json objects
  • Loading branch information
regalijan committed Dec 4, 2024
1 parent f5ca483 commit 2f200f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functions/api/mod-queue/[type]/[id].ts
Expand Up @@ -57,6 +57,11 @@ export async function onRequestGet(context: RequestContext) {
delete item.user.email;
}

if (type === "inactivity") {
item.decisions = JSON.parse(item.decisions);
item.departments = JSON.parse(item.departments);
}

return item
? jsonResponse(JSON.stringify(item))
: jsonError("Not found", 404);
Expand Down

0 comments on commit 2f200f8

Please sign in to comment.