Skip to content

Commit

Permalink
fix: @transactional 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjy committed Jun 18, 2024
1 parent a45bc62 commit a4f0ff9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class AuthService {
private final OAuth2ProviderService oAuth2ProviderService;
private final JwtService jwtService;

@Transactional
public void authenticateOrRegisterUser(LoginRequest loginRequest, HttpServletResponse response) {
OAuth2UserInfo userInfo = oAuth2ProviderService.getUserInfo(loginRequest);
Member member = findOrElseRegisterMember(userInfo, loginRequest.getSocialType());
Expand All @@ -38,8 +39,7 @@ private Member findOrElseRegisterMember(OAuth2UserInfo userInfo, SocialType soci
.orElseGet(() -> registerMember(socialType, userInfo));
}

@Transactional
public Member registerMember(SocialType socialType, OAuth2UserInfo userInfo) {
private Member registerMember(SocialType socialType, OAuth2UserInfo userInfo) {
Member member = Member.builder()
.socialType(socialType)
.oauthId(userInfo.getId())
Expand Down

0 comments on commit a4f0ff9

Please sign in to comment.