diff --git a/apps/meteor/app/api/server/v1/rooms.ts b/apps/meteor/app/api/server/v1/rooms.ts index 3734c0d90e898..3ec6ad8e5a26d 100644 --- a/apps/meteor/app/api/server/v1/rooms.ts +++ b/apps/meteor/app/api/server/v1/rooms.ts @@ -46,7 +46,6 @@ async function findRoomByIdOrName({ roomName?: string; }; checkedArchived?: boolean; - fields?: Partial; }): Promise { if ( (!('roomId' in params) && !('roomName' in params)) || @@ -55,7 +54,7 @@ async function findRoomByIdOrName({ throw new Meteor.Error('error-roomid-param-not-provided', 'The parameter "roomId" or "roomName" is required'); } - const projection = fields || { ...API.v1.defaultFieldsToExclude }; + const projection = { ...API.v1.defaultFieldsToExclude }; let room; if ('roomId' in params) {