fix(script): log, not warn, so all output goes to both stdout and tee

This commit is contained in:
Sabe Jones
2018-10-09 20:27:52 +00:00
parent e7969987ec
commit 28ed9d8bcc

View File

@@ -65,7 +65,7 @@ async function _processEmailAddress (email) {
}).exec(); }).exec();
if (users.length < 1) { if (users.length < 1) {
console.warn(`No users found with email address ${email}`); console.log(`No users found with email address ${email}`);
} else { } else {
for (const user of users) { for (const user of users) {
await _deleteAmplitudeData(user._id, email); // eslint-disable-line no-await-in-loop await _deleteAmplitudeData(user._id, email); // eslint-disable-line no-await-in-loop