Updated subscription-mail-helper.js - Don't wait for mailer to finish.
Note: When using encryptionKeys, confirmation redirects feel a bit sluggish. This could probably be 'improved' by calling sendMail via setTimout or fixed by moving sendMail to a worker.
This commit is contained in:
parent
a2ebe8f0f7
commit
5647dd040d
1 changed files with 2 additions and 2 deletions
|
@ -144,11 +144,11 @@ function sendMail(list, email, template, subject, relativeUrls, mailOpts, subscr
|
||||||
}, err => {
|
}, err => {
|
||||||
if (err) {
|
if (err) {
|
||||||
log.error('Subscription', err);
|
log.error('Subscription', err);
|
||||||
return callback(err);
|
|
||||||
}
|
}
|
||||||
callback();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
callback();
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue