Skip to content

Commit

Permalink
fix(service): 중복 검사
Browse files Browse the repository at this point in the history
  • Loading branch information
zeus6768 committed Aug 5, 2024
1 parent 9ace4c4 commit eb14c4a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public void checkLogin(Cookie[] cookies) {
}

public void assertUniqueEmail(String email) {
if (!memberRepository.existsByEmail(email)) {
if (memberRepository.existsByEmail(email)) {
throw new CodeZapException(HttpStatus.CONFLICT, "이메일이 이미 존재합니다.");
}
}

public void assertUniqueUsername(String username) {
if (!memberRepository.existsByUsername(username)) {
if (memberRepository.existsByUsername(username)) {
throw new CodeZapException(HttpStatus.CONFLICT, "사용자명이 이미 존재합니다.");
}
}
Expand Down

0 comments on commit eb14c4a

Please sign in to comment.