From 255dde359156aa01a3d115234933be6c975e4f50 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Sat, 25 May 2013 10:52:35 +0200 Subject: changed what gets collected --- models/pPost.js | 3 +-- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.3