Skip to content

Commit e31f110

Browse files
d-gubertKevLehman
andauthored
Apply suggestions from code review
Co-authored-by: Kevin Aleman <kaleman960@gmail.com>
1 parent dec1123 commit e31f110

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.changeset/five-cherries-hang.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
'@rocket.chat/meteor': patch
1818
---
1919

20-
Fix behavior of app updates that would save undesired field changes to documents
20+
Fixes behavior of app updates that would save undesired field changes to documents

apps/meteor/app/apps/server/converters/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class AppMessagesConverter {
142142

143143
let rid;
144144
if (message.room?.id) {
145-
const room = await Rooms.findOneById(message.room.id);
145+
const room = await Rooms.findOneById(message.room.id, { projection: {_id: 1}});
146146
rid = room?._id;
147147
}
148148

0 commit comments

Comments
 (0)