diff --git a/src/main/java/com/lesso/neverland/group/application/GroupService.java b/src/main/java/com/lesso/neverland/group/application/GroupService.java index c0ba547..7503756 100644 --- a/src/main/java/com/lesso/neverland/group/application/GroupService.java +++ b/src/main/java/com/lesso/neverland/group/application/GroupService.java @@ -112,13 +112,14 @@ private List getMemberImageList(Team group) { List memberImages = group.getUserTeams().stream() .filter(userTeam -> "active".equals(userTeam.getStatus())) + .filter(userTeam -> !userTeam.getUser().equals(group.getAdmin())) .map(userTeam -> userTeam.getUser().getProfile().getProfileImage()) - .limit(2).toList(); + .limit(2) + .toList(); imageList.addAll(memberImages); return imageList; } - // [관리자] 그룹 수정 화면 조회 public BaseResponse getGroupEditView(Long groupIdx) { Team group = groupRepository.findById(groupIdx).orElseThrow(() -> new BaseException(INVALID_GROUP_IDX));