Skip to content

Commit

Permalink
fix: webhook r2 objectKey
Browse files Browse the repository at this point in the history
  • Loading branch information
0x73746F66 committed Jun 15, 2024
1 parent b777958 commit 63e6f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/github/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 63e6f0a

Please sign in to comment.