feat: Organization Add member to a team email communication (#12946)

This commit is contained in:
Somay Chauhan
2024-01-04 16:29:07 +00:00
committed by GitHub
parent 3791af8644
commit ef7f0e2259
@@ -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