fixed: wrong error message show on adding duplicate number to a user
This commit is contained in:
parent
676709e706
commit
da9133ae85
1 changed files with 1 additions and 1 deletions
|
@ -888,7 +888,7 @@ App::patch('/v1/users/:userId/phone')
|
|||
try {
|
||||
$user = $dbForProject->updateDocument('users', $user->getId(), $user);
|
||||
} catch (Duplicate $th) {
|
||||
throw new Exception(Exception::USER_EMAIL_ALREADY_EXISTS);
|
||||
throw new Exception(Exception::USER_PHONE_ALREADY_EXISTS);
|
||||
}
|
||||
|
||||
$events->setParam('userId', $user->getId());
|
||||
|
|
Loading…
Reference in a new issue