From fa639b0cd3c8111cd27f3c2d7f06e898f85638a0 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 24 May 2013 18:01:41 +0200 Subject: sped things up by not requiring so much data --- models/Access.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Access.js b/models/Access.js index 223a7e1..b9570e6 100644 --- a/models/Access.js +++ b/models/Access.js @@ -83,7 +83,7 @@ AccessSchema.statics = { loadProject: function(project, callback) { this.find({ project: project }) - .populate('user') + .populate({path: 'user', select: '_id name'}) .sort({ 'created': 1 }) // sort by date .exec(callback); }, -- cgit v1.2.3