Skip to content

Commit

Permalink
refactor: 소속에서 강퇴되어도 재입장이 가능하다. (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj authored Jun 12, 2024
1 parent fbd80a4 commit d78b547
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@ public void blockUser(Long userId, Long agencyId, BlockAgencyUserRequest request
validateStaffUserRole(staffUser);

AgencyUser targetUser = getAgencyUser(request.getUserId(), agencyId);

targetUser.updateAgencyUserRole(BLOCKED);

InvitationCodeCertification certification = getCertification(agencyId, request);

certification.revoke();

agencyUserRepository.delete(targetUser);
invitationCodeCertificationRepository.delete(certification);

Agency agency = getAgency(agencyId);

Expand Down

0 comments on commit d78b547

Please sign in to comment.