Don't fetch object metadata anymore
This commit is contained in:
parent
a2fcffcfdc
commit
1205d98f4f
@ -32,11 +32,6 @@ 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.list({ prefix: `t/${attachment}` })
|
|
||||||
).objects.at(0);
|
|
||||||
|
|
||||||
if (!objectMeta) continue;
|
|
||||||
|
|
||||||
responsePromises.push(
|
responsePromises.push(
|
||||||
fetch("https://api.coconut.co/v2/jobs", {
|
fetch("https://api.coconut.co/v2/jobs", {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user