diff --git a/functions/api/mod-queue/[type]/[id].ts b/functions/api/mod-queue/[type]/[id].ts index 32309a2..8158b33 100644 --- a/functions/api/mod-queue/[type]/[id].ts +++ b/functions/api/mod-queue/[type]/[id].ts @@ -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);