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 }); }