Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeDan committed Jun 24, 2024
1 parent d45b1a1 commit cf05e34
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/api/auth/register/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import registerSchema from "@/validators/registerSchema";
async function handler(request: NextRequest): Promise<NextResponse> {
try {
const data = await request.json();
console.log(data);
const validatedData = registerSchema.parse(data);

const userData: RegisterUser = {
Expand All @@ -25,7 +24,6 @@ async function handler(request: NextRequest): Promise<NextResponse> {
};

const newUser = await register(userData);
console.log("response:", newUser);
return NextResponse.json({ user: newUser }, { status: 201 });
} catch (error) {
return handleException(error);
Expand Down

0 comments on commit cf05e34

Please sign in to comment.