Skip to content

Commit

Permalink
Merge pull request #110 from tukcomCD2024/fix/#109-backend-authservice
Browse files Browse the repository at this point in the history
Fix/#109 회원 정보 중복 저장 해결
  • Loading branch information
yeonjy authored May 5, 2024
2 parents 9214a41 + e0ff029 commit 05ba9a0
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 05ba9a0

Please sign in to comment.