Skip to content

Commit

Permalink
Merge branch 'develop_back_core' into feat/friend_invite_delete-B-#457
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-1116 authored Jun 5, 2024
2 parents 9687423 + 384c8d4 commit 29d672f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static GroupDetailTotalDto as(

public GroupDetailResponse toResponse(final Function<String, String> singlePreSignUrlFunction) {
List<GroupMemberWithRelationResponse> groupMemberResponses = members.stream()
.map(member -> member.toResponse(singlePreSignUrlFunction))
.map(GroupMemberWithRelationDto::toResponse)
.toList();

return GroupDetailResponse.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ public record GroupMemberWithRelationDto(
Boolean isFriend
) {

public GroupMemberWithRelationResponse toResponse(
final Function<String, String> singlePreSignUrlFunction) {
public GroupMemberWithRelationResponse toResponse() {
return GroupMemberWithRelationResponse.builder()
.memberId(memberId)
.profileUrl(singlePreSignUrlFunction.apply(profileUrl))
.profileUrl(profileUrl)
.nickname(nickname)
.tag(tag)
.isOwner(isOwner)
Expand Down

0 comments on commit 29d672f

Please sign in to comment.