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

This commit is contained in:
Somay Chauhan 2024-01-04 21:59:07 +05:30 committed by GitHub
parent 3791af8644
commit ef7f0e2259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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