Skip to content

Commit

Permalink
fix: 회원 정보 중복 저장 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjy committed May 5, 2024
1 parent 9214a41 commit e0ff029
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void authenticateOrRegisterUser(LoginRequest loginRequest, HttpServletRes

private Member findOrElseRegisterMember(OAuth2UserInfo userInfo, SocialType socialType) {
return memberRepository.findBySocialTypeAndOauthId(socialType, userInfo.getId())
.orElse(registerMember(socialType, userInfo));
.orElseGet(() -> registerMember(socialType, userInfo));
}

private Member registerMember(SocialType socialType, OAuth2UserInfo userInfo) {
Expand Down

0 comments on commit e0ff029

Please sign in to comment.