diff --git a/functions/api/appeals/[id]/_middleware.ts b/functions/api/appeals/[id]/_middleware.ts index 15376e9..c0fc509 100644 --- a/functions/api/appeals/[id]/_middleware.ts +++ b/functions/api/appeals/[id]/_middleware.ts @@ -31,7 +31,7 @@ export async function onRequestPost(context: RequestContext) { status: 404, }); - context.data.appeal = key; + context.data.appeal = JSON.parse(key); } if (