mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36: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:
parent
1acf31833c
commit
02bf858903
1 changed files with 9 additions and 1 deletions
|
@ -123,7 +123,15 @@ module.exports = function MembersAPI({
|
||||||
offersAPI,
|
offersAPI,
|
||||||
memberRepository,
|
memberRepository,
|
||||||
emailService: {
|
emailService: {
|
||||||
sendEmailWithMagicLink
|
async sendEmailWithMagicLink({email, requestedType}) {
|
||||||
|
return sendEmailWithMagicLink({
|
||||||
|
email,
|
||||||
|
requestedType,
|
||||||
|
options: {
|
||||||
|
forceEmailType: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
labsService,
|
labsService,
|
||||||
stripeService: stripeAPIService
|
stripeService: stripeAPIService
|
||||||
|
|
Loading…
Add table
Reference in a new issue