From 3f8d79a95df081ef17992b902bc0f92eaeaf9db7 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Wed, 27 Mar 2024 00:04:55 -0400 Subject: [PATCH] Fix copy-and-delete --- functions/api/coconut.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/coconut.ts b/functions/api/coconut.ts index 46b00c3..396b199 100644 --- a/functions/api/coconut.ts +++ b/functions/api/coconut.ts @@ -53,7 +53,7 @@ export async function onRequestPost(context: RequestContext) { method: "PUT", }); - await context.env.R2.delete(attachment); + await context.env.R2.delete(`${attachment}.mp4`); if (!copyResp.ok) console.log(