mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
return UNKNOWN if email exists when user signs up
This commit is contained in:
parent
9ed94b4571
commit
22850bb6ab
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ export const createUser = async (input: {
|
|||
const existingUser = await userRepository.findByEmail(trimmedEmail)
|
||||
if (existingUser) {
|
||||
if (existingUser.profile) {
|
||||
return Promise.reject({ errorCode: SignupErrorCode.UserExists })
|
||||
return Promise.reject({ errorCode: SignupErrorCode.Unknown })
|
||||
}
|
||||
|
||||
// create profile if user exists but profile does not exist
|
||||
|
|
|
|||
Loading…
Reference in a new issue