mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36: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))
|
.findAll(Object.assign({filter: 'subscribed:true'}, knexOptions))
|
||||||
.map(member => member.toJSON(options));
|
.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
|
// NOTE: don't create email object when there's nobody to send the email to
|
||||||
if (!emails.length) {
|
if (!emails.length) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue