Skip to content

Commit

Permalink
feat(room): 조회자 id 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jsween5723 committed Dec 16, 2023
1 parent f15d95e commit c9176a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/room/dto/room.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ export class RoomDto {
lastChat?: ChatDto;
@ApiProperty()
unreadItemCount?: number;
@ApiProperty()
myUserId?: string;
constructor(room: ChatRoom, myId: string, unreadItemCount?: number) {
this.id = room._id.toString();
this.meeting = new MeetingDto(room.meeting, myId);
this.createdAt = Math.floor(room.createdAt.getTime() / 1000);
this.lastChat = new ChatDto(room.lastChat);
this.unreadItemCount = unreadItemCount;
this.myUserId = myId;
}
}

Expand Down

0 comments on commit c9176a3

Please sign in to comment.