Skip to content

Commit

Permalink
refactor: add missing field userCount
Browse files Browse the repository at this point in the history
  • Loading branch information
suakang17 committed Feb 19, 2024
1 parent e3c7758 commit 5aee34e
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 @@ -13,6 +13,7 @@
public class JoinedRoomResponseDto {
private String roomId;
private String roomName;
private long userCount;
private String thumbnailImage;
private List<User> users;
private UserListResponseDto playlistOwner;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public List<JoinedRoomResponseDto> findJoinedRoomsByUid(Long uid) {
.roomName(room.getRoomName())
.thumbnailImage(room.getThumbnailImage())
.users(room.getUsers())
.userCount(room.getUsers().size())
.playlistOwner(entityToResponseDtoConverter.convertUser(room.getPlaylistOwner()))
.lastMessage(lastMessage)
.build());
Expand Down

0 comments on commit 5aee34e

Please sign in to comment.