Skip to content

Commit

Permalink
#9 feat: 유저 차단 생성api-유저가 1)호스트2)참여자일때 보드유저 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
xhaktmchl committed Mar 15, 2023
1 parent 260f2c1 commit 7707f89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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().equals(blockingUser.getId()) && bu.getStatus().equals(BaseStatus.ACTIVE)){
//bu.changeStatusToInactive();
bu.changeStatusToInactive();
}
}
}
Expand All @@ -83,7 +83,7 @@ public ApplicationResponse<BlockRes> createBlock(CreateBlockReq dto){
if(!boardUsers.isEmpty()){
for(BoardUser bu: boardUsers){
if(bu.getUser().getId().equals(blockedUser.getId()) && bu.getStatus().equals(BaseStatus.ACTIVE)){
//bu.changeStatusToInactive();
bu.changeStatusToInactive();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public ApplicationResponse<GetAllBoardsByCategoryRes> findMyClubBoards(GetMyClub

Page<Board> boards = null;
Page<BoardUser> boardUsers = null;
List<GetAllBoardRes> res = null;
List<GetAllBoardRes> res = new ArrayList<>();
/*
1.생성한 보드: Opened Club
2.참여한 보드 : Applied Club
Expand Down

0 comments on commit 7707f89

Please sign in to comment.