Skip to content

Commit

Permalink
fix: 회원탈퇴 이후 로그인이 되는 버그 픽스
Browse files Browse the repository at this point in the history
ProfileFacadeService, UserService의 Dirty checking이 필요한 메서드에 대해 @transactional 어노테이션 추가
  • Loading branch information
SSung023 committed Sep 1, 2024
1 parent a6912a0 commit 3508818
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public Long save(User user) {
}


@Transactional
public void delete(Long userId, String identifier, String reason) {
userRepository.deleteById(userId);
signoutRepository.save(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.HashMap;
import java.util.List;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class ProfileFacadeService implements ProfileFacade {
Expand Down Expand Up @@ -75,6 +76,7 @@ public UserDetailsInformationResponse getUserDetailsInformation(User user) {
}

@Override
@Transactional
public Long updateUserInformation(User user, UserInformationUpdateRequest userInformationUpdateRequest) {
User findUser = userService.findUserByIdentifier(user.getIdentifier());
findUser.updateUserInformation(
Expand All @@ -85,6 +87,7 @@ public Long updateUserInformation(User user, UserInformationUpdateRequest userIn
}

@Override
@Transactional
public void deleteUserInformation(User user, String reason) {
User findUser = userService.findUserByIdentifier(user.getIdentifier());

Expand All @@ -96,6 +99,7 @@ public void deleteUserInformation(User user, String reason) {
}

@Override
@Transactional
public void updateUserTags(User user, UserInterestUpdateRequest userInterestUpdateRequest) {
if (userInterestUpdateRequest.getTags() == null) {
throw new BusinessException();
Expand Down

0 comments on commit 3508818

Please sign in to comment.