Skip to content

Commit

Permalink
Merge pull request #56 from DEPthes/feat/user-character-exist
Browse files Browse the repository at this point in the history
회원 탈퇴 오류 코드 주석처리
  • Loading branch information
EunbeenDev authored Aug 21, 2024
2 parents a79bd09 + 9d500d3 commit a6a40a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ public ResponseEntity<?> cancelAccount(UserPrincipal userPrincipal) {
userRepository.delete(user);

// Daily Experience 정보 삭제
Character character = characterRepository.findByUserId(userPrincipal.getId()).orElseThrow(() -> new IllegalArgumentException("캐릭터를 찾을 수 없습니다."));
Long characterId = character.getId();
dailyExperienceRepository.deleteAllByCharacterId(characterId);
// Character character = characterRepository.findByUserId(userPrincipal.getId()).orElseThrow(() -> new IllegalArgumentException("캐릭터를 찾을 수 없습니다."));
// Long characterId = character.getId();
// dailyExperienceRepository.deleteAllByCharacterId(characterId);

// 응답 생성 및 반환
ApiResponse apiResponse = ApiResponse.builder()
Expand Down

0 comments on commit a6a40a0

Please sign in to comment.