From 690d92e4fd71afc892f40da3841c4dc7fc715ad8 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Tue, 26 Mar 2024 04:02:27 -0400 Subject: [PATCH] Remove stray period --- functions/api/reports/complete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/reports/complete.ts b/functions/api/reports/complete.ts index 1964530..c91d976 100644 --- a/functions/api/reports/complete.ts +++ b/functions/api/reports/complete.ts @@ -33,7 +33,7 @@ export async function onRequestPost(context: RequestContext) { for (const attachment of coconutData.attachments) { const token = crypto.randomUUID(); const objectMeta = ( - await context.env.R2.list({ prefix: `t/${attachment}.` }) + await context.env.R2.list({ prefix: `t/${attachment}` }) ).objects.at(0); if (!objectMeta) continue;