Update teamService.tsx

This commit is contained in:
Arjun Patel
2022-01-28 01:24:02 -08:00
parent 9eff310e7f
commit 7f2ed61b4a
+5
View File
@@ -224,6 +224,11 @@ export default class TeamService implements IService {
}
async createTeamInvite(teamMember: TeamMember) {
if (teamMember.status == TeamMemberStatus.activated) {
console.log('cannot invite this user, already active.')
return
}
// if a person was already invited, then update that record, otherwise create a new one
const existingTeamMember = await this.getTeamMemberByEmailInvite(
teamMember.teamId,