Skip to content

Commit

Permalink
revert fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Aug 8, 2024
1 parent 915138b commit cb74618
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/meteor/app/api/server/v1/rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ async function findRoomByIdOrName({
roomName?: string;
};
checkedArchived?: boolean;
fields?: Partial<IRoom>;
}): Promise<IRoom> {
if (
(!('roomId' in params) && !('roomName' in params)) ||
Expand All @@ -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) {
Expand Down

0 comments on commit cb74618

Please sign in to comment.