Skip to content

Commit

Permalink
Added missing await statement
Browse files Browse the repository at this point in the history
no issue

- The 90905b0 refactor missed the statment which is causing email to not being sent
  • Loading branch information
naz committed Nov 27, 2019
1 parent 90905b0 commit 63e6dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/services/mega/mega.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 63e6dd5

Please sign in to comment.