From 162628495bf51b55cab00af00c29381f6eb7a33f Mon Sep 17 00:00:00 2001 From: xhaktmchl Date: Wed, 15 Mar 2023 19:17:19 +0900 Subject: [PATCH] =?UTF-8?q?#9=20fix:=20=EB=B3=B4=EB=93=9C=20=EB=A7=88?= =?UTF-8?q?=EC=9D=B4=ED=81=B4=EB=9F=BD=20=EC=A1=B0=ED=9A=8Capi-applied?= =?UTF-8?q?=EC=9D=98=20=EB=A9=A4=EB=B2=84=20=EC=9D=B8=EC=9B=90=EC=88=98=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yogit/server/board/service/BoardServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/com/yogit/server/board/service/BoardServiceImpl.java b/server/src/main/java/com/yogit/server/board/service/BoardServiceImpl.java index 7812acc..9e64938 100644 --- a/server/src/main/java/com/yogit/server/board/service/BoardServiceImpl.java +++ b/server/src/main/java/com/yogit/server/board/service/BoardServiceImpl.java @@ -284,7 +284,10 @@ else if(dto.getMyClubType().equals(MyClubType.APPLIED_CLUB.toString())) { // 보드 res에 이미지uuid -> aws s3 url로 변환 if (boardUsers != null && !boardUsers.isEmpty()) { for (BoardUser bu : boardUsers) { - if (bu.getStatus().equals(BaseStatus.ACTIVE) && bu.getBoard().getHost().getId().equals(dto.getUserId())) {// 조건1: 호스트가 아닌 것 + if (bu.getStatus().equals(BaseStatus.ACTIVE) && !bu.getBoard().getHost().getId().equals(dto.getUserId())) {// 조건1: 호스트가 아닌 것 + + List participantsOrigin = boardUserRepository.findAllByBoardId(bu.getBoard().getId());// 보드 현재 인원 반영 + bu.getBoard().changeBoardCurrentMember(participantsOrigin.size()); res.add(GetAllBoardRes.toDto(bu.getBoard(), awsS3Service.makeUrlOfFilename(bu.getBoard().getBoardImagesUUids().get(0)), bu.getBoard().getBoardUsers().stream().map(boardUser -> awsS3Service.makeUrlOfFilename(boardUser.getUser().getProfileImg())).collect(Collectors.toList()))); } }