Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't fetch object metadata anymore
  • Loading branch information
regalijan committed Mar 26, 2024
1 parent a2fcffc commit 1205d98
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions functions/api/reports/complete.ts
Expand Up @@ -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", {
Expand Down

0 comments on commit 1205d98

Please sign in to comment.