Skip to content

Commit

Permalink
Fix: remove redundatn populate option
Browse files Browse the repository at this point in the history
  • Loading branch information
chlehdwon committed Sep 24, 2023
1 parent 8f64026 commit 9fbd089
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/chats.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ const readChatHandler = async (req, res) => {
arrayFilters: [{ "updater.user": { $eq: user._id } }],
}
)
.lean()
.populate(roomPopulateOption);
.lean();

if (!roomObject) {
return res.status(404).send("Chat/read : cannot find room info");
Expand Down

0 comments on commit 9fbd089

Please sign in to comment.