Skip to content

Commit

Permalink
fix getMember method
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianoPierdona committed Jun 24, 2022
1 parent 4943816 commit 2fd4ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/server/services/team/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ export class TeamService extends ServiceClassInternal implements ITeamService {
}

async getMember(teamId: string, userId: string, options: FindOneOptions<ITeamMember>): Promise<ITeamMember | null> {
return this.TeamMembersModel.findOneByUserIdAndTeamId(userId, teamId, options);
return TeamMember.findOneByUserIdAndTeamId(userId, teamId, options);
}

async listRoomsOfUser(
Expand Down

0 comments on commit 2fd4ec9

Please sign in to comment.