-
-
Save joshsmith/1431555 to your computer and use it in GitHub Desktop.
How should I be doing the callback?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user.save().on('success', function(user) { | |
callback(null, user); | |
}).on('failure', function(error) { | |
callback(user); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment