Skip to content

Commit

Permalink
Merge pull request #88 from sgdevcamp2023/feat/#70_4
Browse files Browse the repository at this point in the history
Feat/#70 4 joined chatroom에 missingfield인 usercount를 추가합니다
  • Loading branch information
suakang17 authored Feb 19, 2024
2 parents e3c7758 + 5aee34e commit 2572a60
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 2572a60

Please sign in to comment.