From 63e6f0adf33815dd457cc3c1b4f39b3f5b65d394 Mon Sep 17 00:00:00 2001 From: 0x73746F66 Date: Sat, 15 Jun 2024 22:47:59 +1000 Subject: [PATCH] fix: webhook r2 objectKey --- functions/github/webhook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/github/webhook.js b/functions/github/webhook.js index 06ce20a..9564763 100644 --- a/functions/github/webhook.js +++ b/functions/github/webhook.js @@ -26,8 +26,8 @@ export async function onRequestPost(context) { if (jsonData?.installation?.id) { objectKey = `github/${jsonData.installation.id}/${webhook_event}/${hook_id}.json` } + console.log(objectKey) const info = await env.r2webhooks.put(objectKey, jsonStr) - console.log(info) return Response.json(info) }