Skip to content

Commit

Permalink
๐Ÿ› bugfix: ํšŒ์›ํƒˆํ‡ด ์™ธ๋ž˜ํ‚ค ์ฐธ์กฐ ์—๋Ÿฌ ํ•ด๊ฒฐ
Browse files Browse the repository at this point in the history
  • Loading branch information
jun02160 committed Mar 2, 2024
1 parent 078a42d commit 444170f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ public void signout(Long userId) {
tokenRedisRetriever.deleteRefreshToken(user.getRefreshToken());
userManager.withdrawUser(user);
healthRetriever.deleteByUser(user); // ์˜จ๋ณด๋”ฉ ๊ฑด๊ฐ• ์ •๋ณด ์‚ญ์ œ
user.setUserMissionChoiceToNull();
user.getUserMissionChoice().forEach(umc -> {
umc.deleteUser();
userMissionChoicesRetriever.deleteById(umc.getId());
});
user.setUserMissionChoiceToNull();

Parentchild parentchild = user.getParentchild();
List<User> users = userRetriever.getUsersByParentchild(parentchild);
Expand All @@ -210,11 +210,11 @@ public void signout(Long userId) {
log.info("์‚ญ์ œ๋œ ๋ถ€๋ชจ์ž์‹: {} X {}", users.get(0).getNickname(), users.get(1).getNickname());
}
users.forEach(u -> {
u.setUserMissionToNull();
u.getUserMissions().forEach(um -> {
um.deleteUser();
userMissionRetriever.deleteById(um.getId());
});
u.setUserMissionToNull();
u.setParentchildToNull();
});

Expand Down

0 comments on commit 444170f

Please sign in to comment.