Skip to content

Commit

Permalink
Update apps/meteor/app/livechat/server/api/v1/room.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman authored Oct 13, 2023
1 parent dd8b7e7 commit 33a988e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/livechat/server/api/v1/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ API.v1.addRoute(
throw new Error('invalid-visitor');
}

const room = await LivechatRooms.findOneById(rid, { projection: { ...roomAccessAttributes, _id: 1, t: 1 } }); // TODO: check _id
const room = await LivechatRooms.findOneById(rid, { projection: { ...roomAccessAttributes, _id: 1, t: 1, v: 1 } }); // TODO: check _id
if (!room) {
throw new Error('invalid-room');
}
Expand Down

0 comments on commit 33a988e

Please sign in to comment.