From 0cfc972dae29729d11ef5b4e32e54a700598e250 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Wed, 11 Dec 2024 21:43:43 -0500 Subject: [PATCH] Parse target_ids and target_usernames into proper arrays --- functions/api/me/items/[type]/[id].ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/api/me/items/[type]/[id].ts b/functions/api/me/items/[type]/[id].ts index a424962..0e2b9e7 100644 --- a/functions/api/me/items/[type]/[id].ts +++ b/functions/api/me/items/[type]/[id].ts @@ -27,6 +27,8 @@ export async function onRequestGet(context: RequestContext) { if (type === "report") { data.attachments = JSON.parse(data.attachments); + data.target_ids = JSON.parse(data.target_ids); + data.target_usernames = JSON.parse(data.target_usernames); const { AwsClient } = await import("aws4fetch"); const aws = new AwsClient({ accessKeyId: context.env.R2_ACCESS_KEY,