From c9176a3df1f063efa155a0612eaaaa29608131b7 Mon Sep 17 00:00:00 2001 From: jsween5723 Date: Sun, 17 Dec 2023 00:18:59 +0900 Subject: [PATCH] =?UTF-8?q?feat(room):=20=EC=A1=B0=ED=9A=8C=EC=9E=90=20id?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/room/dto/room.dto.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/room/dto/room.dto.ts b/src/room/dto/room.dto.ts index 115a1c0..4e2abd4 100644 --- a/src/room/dto/room.dto.ts +++ b/src/room/dto/room.dto.ts @@ -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; } }