fix: email ban tests

This commit is contained in:
Julian Lam
2022-01-28 15:41:22 -05:00
parent e25c0313d1
commit dee9cca3c8
2 changed files with 32 additions and 19 deletions

View File

@@ -230,7 +230,7 @@ Emailer.send = async (template, uid, params) => {
if (!meta.config.sendEmailToBanned && template !== 'banned') {
if (userData.banned) {
winston.warn(`[emailer/send] User ${userData.username} (uid: ${uid}) is banned; not sending email due to system config.`);
return false;
return;
}
}