Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Model.findById = function findById(id, projection, options, callback) {
- if (typeof id === 'undefined') {
- id = null;
- }
- if (callback) {
- callback = this.$wrapCallback(callback);
- }
- return this.findOne({_id: id}, projection, options, callback);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement