From 065bbd92f45a366ae56621eedaa5213fcb2ebd89 Mon Sep 17 00:00:00 2001 From: Vedal Date: Sat, 15 Jun 2024 03:32:04 +0100 Subject: [PATCH] Update config.ts --- ebs/src/modules/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebs/src/modules/config.ts b/ebs/src/modules/config.ts index 5e577d3..0192a52 100644 --- a/ebs/src/modules/config.ts +++ b/ebs/src/modules/config.ts @@ -92,7 +92,7 @@ const webhooks = new Webhooks({ app.post("/webhook/refresh", asyncCatch(async (req, res) => { // github webhook const signature = req.headers["x-hub-signature-256"] as string; - const body = req.body as string; + const body = JSON.stringify(req.body); if(!(await webhooks.verify(body, signature))) { res.sendStatus(403);