Skip to content

Commit

Permalink
refactor :: user delete 위치 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
JuuuuHong committed Oct 24, 2023
1 parent 80ff6be commit 8ea9ecf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ class AuthServiceImpl(
val user = userUtil.queryCurrentUser()

applicationEventPublisher.publishEvent(WithdrawUserEvent(user))

userRepository.delete(user)
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,5 @@ class UserEventHandler(

else -> throw UnApprovedUserException("회원가입 승인 대기 중인 유저입니다. info : [ userId = ${user.id} ]")
}

userRepository.delete(user)
}
}

0 comments on commit 8ea9ecf

Please sign in to comment.