Skip to content

Commit

Permalink
feat: 전화번호 기반 사용자 존재 여부 확인 로직 추가(#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Minjae-An committed Mar 14, 2024
1 parent f4b1867 commit 15ec97d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions be/src/main/java/yeonba/be/user/repository/UserQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ public User findByEmail(String email) {
return userRepository.findByEmail(email)
.orElseThrow(() -> new GeneralException(UserException.USER_NOT_FOUND));
}

public boolean isUserExist(String phoneNumber) {

return userRepository.existsByPhoneNumber(phoneNumber);
}
}

0 comments on commit 15ec97d

Please sign in to comment.