Fix API and clear code
modified: src/app/api/auth/register/route.ts modified: src/app_modules/auth/login/view.tsx ### No Issue
This commit is contained in:
@@ -14,8 +14,6 @@ export async function POST(req: Request) {
|
||||
try {
|
||||
const { data } = await req.json();
|
||||
|
||||
console.log("data >>", data);
|
||||
|
||||
const cekUsername = await prisma.user.findUnique({
|
||||
where: {
|
||||
username: data.username,
|
||||
|
||||
Reference in New Issue
Block a user