Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Parse target_ids and target_usernames into proper arrays
  • Loading branch information
regalijan committed Dec 12, 2024
1 parent 000472b commit 0cfc972
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/api/me/items/[type]/[id].ts
Expand Up @@ -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,
Expand Down

0 comments on commit 0cfc972

Please sign in to comment.