Skip to content

Commit

Permalink
Merge pull request #150 from YogitTeam/feat/report
Browse files Browse the repository at this point in the history
#9 feat: 유저 차단 생성api-유저가 1)호스트2)참여자일때 보드유저 처리
  • Loading branch information
xhaktmchl authored Mar 15, 2023
2 parents 06c331e + 7707f89 commit 4b2bef8
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 4b2bef8

Please sign in to comment.