Last active
August 29, 2015 14:20
-
-
Save ptasker/482629947dcfe2005acb to your computer and use it in GitHub Desktop.
NodeJS - Simple callback
This file contains hidden or 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
mymodel.findOne({ | |
'user': this.req.user, | |
}, function(err, data){ | |
if (err) return next(err); | |
//yay! do something simple with data | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment