Skip to content

Commit 8f0a128

Browse files
authored
fix body parser code for webhook
1 parent c5dfad8 commit 8f0a128

File tree

1 file changed

+1
-1
lines changed
  • apps/portal/src/app/engine/features/webhooks

1 file changed

+1
-1
lines changed

apps/portal/src/app/engine/features/webhooks/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const port = 3000;
247247

248248
const WEBHOOK_SECRET = "<your_webhook_auth_secret>";
249249

250-
app.use(bodyParser.text());
250+
app.use(bodyParser.json());
251251

252252
app.post("/webhook", (req, res) => {
253253
const signatureFromHeader = req.header("X-Engine-Signature");

0 commit comments

Comments
 (0)