remove phone from user
This commit is contained in:
parent
fc76f086c7
commit
3ab76e7a43
3 changed files with 8 additions and 9 deletions
|
|
@ -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 }
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue