Skip to content

Commit

Permalink
feat: Organization Add member to a team email communication (#12946)
Browse files Browse the repository at this point in the history
  • Loading branch information
SomayChauhan authored Jan 4, 2024
1 parent 3791af8 commit ef7f0e2
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ export const inviteMemberHandler = async ({ ctx, input }: InviteMemberOptions) =
};
}),
});

await sendTeamInviteEmails({
currentUserName: ctx?.user?.name,
currentUserTeamName: team?.name,
existingUsersWithMembersips: autoJoinUsers,
language: translation,
isOrg: input.isOrg,
teamId: team.id,
currentUserParentTeamName: team?.parent?.name,
});
}

// invited users cannot autojoin, create provisional memberships and send email
Expand Down

0 comments on commit ef7f0e2

Please sign in to comment.