fix(scripts): update admin migrations

Refactore "full stable" to current format, add email to GDPR deletion output, fix path in bulk email script
This commit is contained in:
Sabe Jones
2019-04-02 16:35:46 +00:00
parent 4a9cfe8ce5
commit 13818b7634
3 changed files with 45 additions and 78 deletions

View File

@@ -53,7 +53,7 @@ async function _deleteHabiticaData (user, email) {
if (response) {
console.log(`${response.status} ${response.statusText}`);
if (response.status === 200) console.log(`${user._id} removed. Last login: ${user.auth.timestamps.loggedin}`);
if (response.status === 200) console.log(`${user._id} (${email}) removed. Last login: ${user.auth.timestamps.loggedin}`);
}
}