From 1205d98f4faea7f6428fac90d94258e61f1ac784 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Tue, 26 Mar 2024 04:12:22 -0400 Subject: [PATCH] Don't fetch object metadata anymore --- functions/api/reports/complete.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/functions/api/reports/complete.ts b/functions/api/reports/complete.ts index 9dcd0da..cb75901 100644 --- a/functions/api/reports/complete.ts +++ b/functions/api/reports/complete.ts @@ -32,11 +32,6 @@ 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}` }) - ).objects.at(0); - - if (!objectMeta) continue; responsePromises.push( fetch("https://api.coconut.co/v2/jobs", {