Parse target_ids and target_usernames into proper arrays

This commit is contained in:
Regalijan 2024-12-11 21:43:43 -05:00
parent 000472b2ac
commit 0cfc972dae
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -27,6 +27,8 @@ export async function onRequestGet(context: RequestContext) {
if (type === "report") { if (type === "report") {
data.attachments = JSON.parse(data.attachments); 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 { AwsClient } = await import("aws4fetch");
const aws = new AwsClient({ const aws = new AwsClient({
accessKeyId: context.env.R2_ACCESS_KEY, accessKeyId: context.env.R2_ACCESS_KEY,