Fix r2 metadata fetching
This commit is contained in:
parent
65d03b680f
commit
eecb9e7b72
@ -41,7 +41,7 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
|
|
||||||
for (const attachment of coconutData.attachments) {
|
for (const attachment of coconutData.attachments) {
|
||||||
const token = crypto.randomUUID();
|
const token = crypto.randomUUID();
|
||||||
const objectMeta = await context.env.R2.head(attachment);
|
const objectMeta = await context.env.R2.head(`t/${attachment}`);
|
||||||
|
|
||||||
if (!objectMeta) continue;
|
if (!objectMeta) continue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user