Skip to content

Commit

Permalink
♻️ 리펙터링
Browse files Browse the repository at this point in the history
  • Loading branch information
hajeu committed Nov 11, 2023
1 parent ecb51cf commit 91441c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DeleteMyMentorInfoService(
?: throw ExpectedException("존재하지 않는 user입니다.", HttpStatus.NOT_FOUND)
val mentor = mentorRepository.findByUser(user)
?: throw ExpectedException("존재하지 않는 mentor입니다.", HttpStatus.NOT_FOUND)
tempMentorRepository.findByGenerationAndName(mentor.user.generation, mentor.user.name)
tempMentorRepository.findByGenerationAndName(user.generation, user.name)
?.let { it.deleted = false }

deleteMyInfo(user, mentor)
Expand Down

0 comments on commit 91441c5

Please sign in to comment.