From 1259d8e3e0d7f6d8dc275bb70878d6af038962bf Mon Sep 17 00:00:00 2001 From: xue Date: Tue, 25 Jun 2024 20:50:18 +0300 Subject: [PATCH] refactor: Update room lastMessageUpdatedAt field in RoomController --- src/controllers/room.controller.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/room.controller.ts b/src/controllers/room.controller.ts index 97358e1..a49108d 100644 --- a/src/controllers/room.controller.ts +++ b/src/controllers/room.controller.ts @@ -109,6 +109,7 @@ export default class RoomController { copilot: [], typing: [defaultDate, defaultDate], unseen: [0, 0], + lastMessageUpdatedAt: new Date(), }; } else { roomData = { @@ -116,6 +117,7 @@ export default class RoomController { copilot: [], typing: [defaultDate, defaultDate], unseen: [0, 0], + lastMessageUpdatedAt: new Date(), }; }