Skip to content

Commit

Permalink
Merge pull request #188 from lemonssoju/fix/122-getGroupProfile
Browse files Browse the repository at this point in the history
[fix/122-getGroupProfile] 그룹 멤버 이미지 조회 시 관리자가 중복되는 문제를 수정하고 관리자가 가장 앞에 담기도록 구현
  • Loading branch information
JoongHyun-Kim authored Jun 5, 2024
2 parents 633225f + 4b158ee commit 53845e1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,14 @@ private List<String> getMemberImageList(Team group) {

List<String> 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<GroupEditViewResponse> getGroupEditView(Long groupIdx) {
Team group = groupRepository.findById(groupIdx).orElseThrow(() -> new BaseException(INVALID_GROUP_IDX));
Expand Down

0 comments on commit 53845e1

Please sign in to comment.