diff options
-rw-r--r-- | models/pPost.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/pPost.js b/models/pPost.js index ad17890..1f53984 100644 --- a/models/pPost.js +++ b/models/pPost.js @@ -67,9 +67,8 @@ pPostSchema.statics = { loadByProjects: function(projects, callback) { this.find({ project: { $in: projects } }) - .populate({ path: 'user', select: 'name email status' }) + .populate({ path: 'user', select: '_id name' }) .populate({ path: 'project', select: 'name shortURL' }) - .limit(10) .sort({ 'when': -1, 'created': -1 }) .exec(callback); } |