Skip to content

Commit

Permalink
Remove error catching left over from debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Advayp committed Jan 18, 2025
1 parent 25cd81f commit c4e1634
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions backend/app/api/user/register/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ type PostRequest = {
export const POST = async (req: NextRequest) => {
const { username }: PostRequest = await req.json();

const user = await prisma.user
.create({
data: {
username,
},
})
.catch((e) => {
console.error((e as Error).stack);
});
const user = await prisma.user.create({
data: {
username,
},
});

return NextResponse.json({ user });
};

0 comments on commit c4e1634

Please sign in to comment.