Skip to content

Instantly share code, notes, and snippets.

@joshsmith
Forked from Marak/gist:1431484
Created December 4, 2011 22:53
Show Gist options
  • Save joshsmith/1431555 to your computer and use it in GitHub Desktop.
Save joshsmith/1431555 to your computer and use it in GitHub Desktop.
How should I be doing the callback?
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