Fix copy-and-delete
This commit is contained in:
parent
d2a26c5ab1
commit
3f8d79a95d
@ -53,7 +53,7 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
method: "PUT",
|
method: "PUT",
|
||||||
});
|
});
|
||||||
|
|
||||||
await context.env.R2.delete(attachment);
|
await context.env.R2.delete(`${attachment}.mp4`);
|
||||||
|
|
||||||
if (!copyResp.ok)
|
if (!copyResp.ok)
|
||||||
console.log(
|
console.log(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user