Skip to content

Commit

Permalink
#9 fix: 유저 차단API-관련 보드의 멤버 삭제시 보드유저ID로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
xhaktmchl committed Mar 9, 2023
1 parent d28d2e5 commit cfa972c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public ApplicationResponse<BlockRes> createBlock(CreateBlockReq dto){
if(!boardUsers.isEmpty()){
for(BoardUser bu: boardUsers){
if(bu.getUser().getId() == blockingUser.getId() && bu.getStatus().equals(BaseStatus.ACTIVE)){
boardUserRepository.deleteById(blockingUser.getId());
boardUserRepository.deleteById(bu.getId());
}
}
}
Expand All @@ -83,7 +83,7 @@ public ApplicationResponse<BlockRes> createBlock(CreateBlockReq dto){
if(!boardUsers.isEmpty()){
for(BoardUser bu: boardUsers){
if(bu.getUser().getId() == blockedUser.getId() && bu.getStatus().equals(BaseStatus.ACTIVE)){
boardUserRepository.deleteById(blockedUser.getId());
boardUserRepository.deleteById(bu.getId());
}
}
}
Expand Down

0 comments on commit cfa972c

Please sign in to comment.