From 2643175b4be0d5bb363ea3beae08f670b573311f Mon Sep 17 00:00:00 2001 From: AI Worker Date: Sat, 13 Jun 2026 06:59:11 +0200 Subject: [PATCH] Fix webhook JSON parsing --- src/app/api/webhooks/route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/webhooks/route.js b/src/app/api/webhooks/route.js index cd8fd6c..f43ae61 100644 --- a/src/app/api/webhooks/route.js +++ b/src/app/api/webhooks/route.js @@ -25,7 +25,7 @@ export const POST = withAuth(async (event) => { let body; try { - body = await request.json(); + body = await event.request.json(); } catch { return NextResponse.json({ error: 'Invalid JSON' }, { status: 400 }); }