Skip to content

Commit

Permalink
Refactor webhook route to return 'Organization created' instead of 'U…
Browse files Browse the repository at this point in the history
…ser created'
  • Loading branch information
alvinsjoy committed Oct 8, 2024
1 parent 3f6383b commit 7bc7aff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/api/webhook/clerk/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export const POST = async (request: Request) => {
created_by,
);

return NextResponse.json({ message: 'User created' }, { status: 201 });
return NextResponse.json(
{ message: 'Organization created' },
{ status: 201 },
);
} catch (err) {
console.log(err);
return NextResponse.json(
Expand Down

0 comments on commit 7bc7aff

Please sign in to comment.