-
Notifications
You must be signed in to change notification settings - Fork 2k
Bug: reset-password enhancements and bug fix #755
Conversation
LGTM.. tested, and confirmed it's sending the emails. Thanks @rhutchison |
Cool, thanks guys. |
@lirantal @rhutchison Slight issue with this script. If there aren't any users in the database, this will hang with no exit. It may seem trivial, but if this script is automated or added to a batch it would reek havoc. You can add this simple fix after the err check at the beginning of the User.find() callback
I have a more elegant solution to the no users found issue in the PR i submitted to your fork for the user-refactor email migration. |
0de6979
to
01a8d5e
Compare
@mleanos please re-test |
@rhutchison I'm going to be away from my computer for most of tonight. I'll test it tomorrow morning. |
function reportAndExit(processedCount, errorCount) { | ||
var successCount = processedCount - errorCount; | ||
|
||
console.log(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilanbiala I like the extra line written here. It separates any line item messages from the overall processing results.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilanbiala provides line separation, as @mleanos mentioned. It was intentional
@rhutchison I've tested this and it works great. However, what's the purpose of the |
@mleanos alert is just a mapped function to chalk.green, chalk.red, or chalk.yellow depending on the result status. |
@rhutchison thank you. I obviously, didn't pay enough attention. Jumped the gun, when I saw the alert :) LGTM. |
Great. Thanks @rhutchison for fixing this. |
Bug: reset-password enhancements and bug fix
Resolved issues:
Enhancements: