Skip to content

Commit

Permalink
add sidepanel to getParentRoom projection
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti authored and ggazzo committed Sep 17, 2024
1 parent 8469d79 commit 23408c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/meteor/server/services/team/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1055,8 +1055,10 @@ export class TeamService extends ServiceClassInternal implements ITeamService {
return rooms;
}

private getParentRoom(team: AtLeast<ITeam, 'roomId'>): Promise<Pick<IRoom, 'name' | 'fname' | 't' | '_id'> | null> {
return Rooms.findOneById<Pick<IRoom, 'name' | 'fname' | 't' | '_id'>>(team.roomId, { projection: { name: 1, fname: 1, t: 1 } });
private getParentRoom(team: AtLeast<ITeam, 'roomId'>): Promise<Pick<IRoom, 'name' | 'fname' | 't' | '_id' | 'sidepanel'> | null> {
return Rooms.findOneById<Pick<IRoom, 'name' | 'fname' | 't' | '_id' | 'sidepanel'>>(team.roomId, {
projection: { name: 1, fname: 1, t: 1, sidepanel: 1 },
});
}

async getRoomInfo(
Expand Down

0 comments on commit 23408c5

Please sign in to comment.