0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fixed behaviour of sending emails when adding member

no-issue

When adding a new member, we allow an email to be sent, and the type of
email to be chosen. This choice was being overriden by our signup email
logic - here we allow the BREAD API to have full control over which
email is sent.
This commit is contained in:
Fabien O'Carroll 2021-11-02 12:37:07 +02:00
parent 1acf31833c
commit 02bf858903

View file

@ -123,7 +123,15 @@ module.exports = function MembersAPI({
offersAPI,
memberRepository,
emailService: {
sendEmailWithMagicLink
async sendEmailWithMagicLink({email, requestedType}) {
return sendEmailWithMagicLink({
email,
requestedType,
options: {
forceEmailType: true
}
});
}
},
labsService,
stripeService: stripeAPIService