Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Model.findById = function findById(id, projection, options, callback) {
  2. if (typeof id === 'undefined') {
  3. id = null;
  4. }
  5.  
  6. if (callback) {
  7. callback = this.$wrapCallback(callback);
  8. }
  9.  
  10. return this.findOne({_id: id}, projection, options, callback);
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement