Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix r2 metadata fetching
  • Loading branch information
regalijan committed Mar 26, 2024
1 parent 65d03b6 commit eecb9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/reports/complete.ts
Expand Up @@ -41,7 +41,7 @@ export async function onRequestPost(context: RequestContext) {

for (const attachment of coconutData.attachments) {
const token = crypto.randomUUID();
const objectMeta = await context.env.R2.head(attachment);
const objectMeta = await context.env.R2.head(`t/${attachment}`);

if (!objectMeta) continue;

Expand Down

0 comments on commit eecb9e7

Please sign in to comment.