remove phone from user

This commit is contained in:
JakkrapartXD 2026-01-14 17:51:21 +07:00
parent fc76f086c7
commit 3ab76e7a43
3 changed files with 8 additions and 9 deletions

View file

@ -81,8 +81,8 @@ export class AuthService {
throw new ValidationError('Email already exists');
}
// Check if phone number already exists
const existingPhone = await prisma.user.findUnique({
// Check if phone number already exists in user profiles
const existingPhone = await prisma.userProfile.findFirst({
where: { phone }
});