Skip to content

Commit

Permalink
Merge pull request #101 from sgdevcamp2023/feat/#70_7
Browse files Browse the repository at this point in the history
refactor: add 음원 총 수 - 모든 채팅방 조회 API resp
  • Loading branch information
suakang17 authored Feb 21, 2024
2 parents 0197ee9 + c6a110f commit 1ad4939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class RoomResponseDto {
private long userCount;
private List<UserListResponseDto> users;
private UserListResponseDto playlistOwner;
private long musicCount;
private Playlist playlist;
private String thumbnailImage;
private LocalDateTime createdAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public RoomResponseDto convertRoom(Room room) {
.roomName(room.getRoomName())
.userCount(room.getUsers().size())
.users(room.getUsers().stream().map(this::convertUser).collect(Collectors.toList()))
.musicCount(room.getPlaylist().getMusics().size())
.playlist(room.getPlaylist())
.thumbnailImage(room.getThumbnailImage()) // 플레이리스트에 곡 무조건 존재함을 신뢰
.build();
Expand Down

0 comments on commit 1ad4939

Please sign in to comment.