diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-25 10:52:35 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-25 10:52:35 +0200 |
commit | 255dde359156aa01a3d115234933be6c975e4f50 (patch) | |
tree | b09d11456a9d936d58146c48bdc8e8f910b00ee7 | |
parent | fixed settlement in projects on dashboard. improves on #9 and closes #29 (diff) | |
download | Divid-255dde359156aa01a3d115234933be6c975e4f50.tar.gz |
changed what gets collected
-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); } |