reviewbot

Source code for the is-a.dev r...
Log | Files | Refs | README | LICENSE

commit 132e98090eac70ee3a5f63bc8364a27afb051815
parent 194bb0f382a0eaec20f5b6577a7780c451980d15
Author: iostpa <iostpa@iostpa.com>
Date:   Tue,  3 Mar 2026 18:36:49 +0200

This is the fix (man I'm an idiot)

Diffstat:
Mindex.js | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/index.js b/index.js @@ -201,18 +201,18 @@ const webhookPath = '/api/webhook'; const localWebhookUrl = `http://${host}:${port}${webhookPath}`; // https://github.com/octokit/webhooks.js/#createnodemiddleware -const middleware = createNodeMiddleware(app.webhooks, { webhookPath }); +const middleware = createNodeMiddleware(app.webhooks, { path: webhookPath }); const fastify = Fastify({ logger: false }); await fastify.register(middie); -fastify.use(webhookPath, middleware); +fastify.use(middleware); -await fastify.listen({ port, host }, () => { - console.log(`Server is listening for events at: ${localWebhookUrl}`); - console.log('Press Ctrl + C to quit.'); -}); +await fastify.listen({ port, host }); + +console.log(`Server is listening for events at: ${localWebhookUrl}`); +console.log('Press Ctrl + C to quit.'); /* Standard node http server (use "import http from 'http' if you want to use this instead of Fastify")
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror