Skip to content

Commit

Permalink
refactor(be): user message 수정 #152
Browse files Browse the repository at this point in the history
  • Loading branch information
namhyo01 committed Dec 15, 2022
1 parent 819381b commit f82b475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/database/user.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class UserRepository {
return await newUser.save();
} catch (error) {
if (error.code === 11000) {
if (!!error.keyValue.userid) throw new UserDuplicateIdException(userid);
if (!!error.keyValue.userid) throw new UserDuplicateIdException();
else if (!!error.keyValue.nickname)
throw new UserDuplicateNicknameException();
else if (!!error.keyValue.email)
Expand Down

0 comments on commit f82b475

Please sign in to comment.