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:
parent
1acf31833c
commit
02bf858903
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue