Skip to content

Commit

Permalink
Update config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedal987 committed Jun 15, 2024
1 parent 83573bb commit 065bbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ebs/src/modules/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 065bbd9

Please sign in to comment.