From d2a26c5ab149c3f65f366a437c209986b83afc15 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Tue, 26 Mar 2024 23:53:25 -0400 Subject: [PATCH] Remove useless data var --- 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 c4c38b5..46b00c3 100644 --- a/functions/api/coconut.ts +++ b/functions/api/coconut.ts @@ -25,7 +25,7 @@ export async function onRequestPost(context: RequestContext) { secretAccessKey: context.env.R2_SECRET_KEY, }); - const { data, event } = await context.request.json(); + const { event } = await context.request.json(); if (event === "job.failed") { await fetch(context.env.REPORTS_WEBHOOK, {