Parse target_ids and target_usernames into proper arrays
This commit is contained in:
parent
000472b2ac
commit
0cfc972dae
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user