Skip to content

Commit 40e89da

Browse files
committed
Making use of supportEmail from config
1 parent 62b391e commit 40e89da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/lib/blacklist.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async function notifyUsers (usernames, config) {
6666
})
6767
const twoWeeksFromNow = Date.now() + 14 * 24 * 60 * 60 * 1000
6868
const dateOfRemoval = (new Date(twoWeeksFromNow)).toLocaleDateString()
69-
const supportEmail = '[email protected]'
69+
const { supportEmail } = config
7070

7171
await updateIndexFiles(usernames, accountManager, dateOfRemoval, supportEmail)
7272
await sendEmails(config, usernames, accountManager, dateOfRemoval, supportEmail)
@@ -121,6 +121,7 @@ async function sendEmails (config, usernames, accountManager, dateOfRemoval, sup
121121
}))
122122
const emailsSent = await Promise.all(sendingEmails)
123123
console.info(`${emailsSent.length} emails sent to users with invalid usernames`)
124+
return
124125
}
125126
console.info('You have not configured an email service.')
126127
console.info('Please set it up to send users email about their accounts')

0 commit comments

Comments
 (0)