Skip to content

Commit 2643175

Browse files
AI WorkerAI Worker
authored andcommitted
Fix webhook JSON parsing
1 parent cba49e7 commit 2643175

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/api/webhooks/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const POST = withAuth(async (event) => {
2525

2626
let body;
2727
try {
28-
body = await request.json();
28+
body = await event.request.json();
2929
} catch {
3030
return NextResponse.json({ error: 'Invalid JSON' }, { status: 400 });
3131
}

0 commit comments

Comments
 (0)