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:
witzig 2017-06-16 14:28:57 +02:00
parent a2ebe8f0f7
commit 5647dd040d

View file

@ -144,11 +144,11 @@ function sendMail(list, email, template, subject, relativeUrls, mailOpts, subscr
}, err => {
if (err) {
log.error('Subscription', err);
return callback(err);
}
callback();
});
callback();
});
});
});