aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-24 18:01:41 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-24 18:01:41 +0200
commitfa639b0cd3c8111cd27f3c2d7f06e898f85638a0 (patch)
treee12720a17acc43d305dd08d95fd69f2dfed206e6
parentremoved some logging and changed a redirect (diff)
downloadDivid-fa639b0cd3c8111cd27f3c2d7f06e898f85638a0.tar.gz
sped things up by not requiring so much data
-rw-r--r--models/Access.js2
1 files changed, 1 insertions, 1 deletions
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);
},