From 8d073b004b9f83059c4ca91b8997239ed9472875 Mon Sep 17 00:00:00 2001 From: Caleb Denio Date: Sun, 5 May 2024 17:34:17 -0400 Subject: [PATCH] Actually parse JSON --- api/v1/new.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/new.ts b/api/v1/new.ts index f7cd153..4a47873 100644 --- a/api/v1/new.ts +++ b/api/v1/new.ts @@ -83,7 +83,7 @@ export default async (req: Request) => { const buf = await req.arrayBuffer(); console.log(decoder.decode(buf)) console.log(buf) - const fileURLs = decoder.decode(buf); + const fileURLs = JSON.parse(decoder.decode(buf)); console.log(fileURLs) console.log(fileURLs.length) console.log(typeof fileURLs)