From 2fd4ec901e3d769a86bf37bd901ab968052ad419 Mon Sep 17 00:00:00 2001 From: LucianoPierdona Date: Fri, 24 Jun 2022 16:29:57 -0300 Subject: [PATCH] fix `getMember` method --- apps/meteor/server/services/team/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/server/services/team/service.ts b/apps/meteor/server/services/team/service.ts index 49340d1e9d4c..317c5dcea26e 100644 --- a/apps/meteor/server/services/team/service.ts +++ b/apps/meteor/server/services/team/service.ts @@ -531,7 +531,7 @@ export class TeamService extends ServiceClassInternal implements ITeamService { } async getMember(teamId: string, userId: string, options: FindOneOptions): Promise { - return this.TeamMembersModel.findOneByUserIdAndTeamId(userId, teamId, options); + return TeamMember.findOneByUserIdAndTeamId(userId, teamId, options); } async listRoomsOfUser(