diff --git a/backend/core/src/main/java/site/timecapsulearchive/core/domain/group/data/dto/GroupDetailTotalDto.java b/backend/core/src/main/java/site/timecapsulearchive/core/domain/group/data/dto/GroupDetailTotalDto.java index 1770c5b8f..a9c60bf56 100644 --- a/backend/core/src/main/java/site/timecapsulearchive/core/domain/group/data/dto/GroupDetailTotalDto.java +++ b/backend/core/src/main/java/site/timecapsulearchive/core/domain/group/data/dto/GroupDetailTotalDto.java @@ -39,7 +39,7 @@ public static GroupDetailTotalDto as( public GroupDetailResponse toResponse(final Function singlePreSignUrlFunction) { List groupMemberResponses = members.stream() - .map(member -> member.toResponse(singlePreSignUrlFunction)) + .map(GroupMemberWithRelationDto::toResponse) .toList(); return GroupDetailResponse.builder() diff --git a/backend/core/src/main/java/site/timecapsulearchive/core/domain/group/data/dto/GroupMemberWithRelationDto.java b/backend/core/src/main/java/site/timecapsulearchive/core/domain/group/data/dto/GroupMemberWithRelationDto.java index dbe86a084..0469152c2 100644 --- a/backend/core/src/main/java/site/timecapsulearchive/core/domain/group/data/dto/GroupMemberWithRelationDto.java +++ b/backend/core/src/main/java/site/timecapsulearchive/core/domain/group/data/dto/GroupMemberWithRelationDto.java @@ -14,11 +14,10 @@ public record GroupMemberWithRelationDto( Boolean isFriend ) { - public GroupMemberWithRelationResponse toResponse( - final Function singlePreSignUrlFunction) { + public GroupMemberWithRelationResponse toResponse() { return GroupMemberWithRelationResponse.builder() .memberId(memberId) - .profileUrl(singlePreSignUrlFunction.apply(profileUrl)) + .profileUrl(profileUrl) .nickname(nickname) .tag(tag) .isOwner(isOwner)