Skip to content

Commit

Permalink
fix : 멤버 profile 선언된 URL 적용 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
GaBaljaintheroom committed Jun 5, 2024
1 parent 9f1dd46 commit b607f09
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 b607f09

Please sign in to comment.