This commit is contained in:
Wells Bunker 2025-10-08 11:11:34 -06:00
parent 8416615aa2
commit 9c304bf0a5
No known key found for this signature in database
GPG Key ID: DB16D6F2679B78FC
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ function getOrSetApp() {
* Verifies signature and parses payload * Verifies signature and parses payload
*/ */
export function githubWebhookMiddleware(): MiddlewareHandler { export function githubWebhookMiddleware(): MiddlewareHandler {
console.info('webhook middleware was called');
return async (c: Context, next) => { return async (c: Context, next) => {
try { try {
const githubApp = getOrSetApp(); const githubApp = getOrSetApp();
@ -42,7 +43,9 @@ export function githubWebhookMiddleware(): MiddlewareHandler {
} }
await next(); await next();
console.info('await next');
console.info('await githubApp.webhooks.verifyAndReceive');
await githubApp.webhooks.verifyAndReceive({ await githubApp.webhooks.verifyAndReceive({
id, id,
name, name,