mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Added missing await statement
no issue
- The 90905b0212
refactor missed the statment which is causing email to not being sent
This commit is contained in:
parent
90905b0212
commit
63e6dd59fa
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ const addEmail = async (postModel, options) => {
|
|||
.findAll(Object.assign({filter: 'subscribed:true'}, knexOptions))
|
||||
.map(member => member.toJSON(options));
|
||||
|
||||
const {emailTmpl, emails} = getEmailData(postModel, members);
|
||||
const {emailTmpl, emails} = await getEmailData(postModel, members);
|
||||
|
||||
// NOTE: don't create email object when there's nobody to send the email to
|
||||
if (!emails.length) {
|
||||
|
|
Loading…
Add table
Reference in a new issue