diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-24 18:01:41 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-24 18:01:41 +0200 |
commit | fa639b0cd3c8111cd27f3c2d7f06e898f85638a0 (patch) | |
tree | e12720a17acc43d305dd08d95fd69f2dfed206e6 | |
parent | removed some logging and changed a redirect (diff) | |
download | Divid-fa639b0cd3c8111cd27f3c2d7f06e898f85638a0.tar.gz |
sped things up by not requiring so much data
-rw-r--r-- | models/Access.js | 2 |
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); }, |