Skip to content

Commit

Permalink
refactor: Update room lastMessageUpdatedAt field in RoomController
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelink committed Jun 25, 2024
1 parent 730bafc commit 1259d8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controllers/room.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,15 @@ export default class RoomController {
copilot: [],
typing: [defaultDate, defaultDate],
unseen: [0, 0],
lastMessageUpdatedAt: new Date(),
};
} else {
roomData = {
users: [to, sender],
copilot: [],
typing: [defaultDate, defaultDate],
unseen: [0, 0],
lastMessageUpdatedAt: new Date(),
};
}

Expand Down

0 comments on commit 1259d8e

Please sign in to comment.