diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-24 16:10:30 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-24 16:10:30 +0200 |
commit | f8c028dbed37efd031046ccd00414f875e4f2e53 (patch) | |
tree | 9748a3cdc6597d384f0e7fb5130e1d457606769f | |
parent | don't get so many fields.. faster loading (diff) | |
download | Divid-f8c028dbed37efd031046ccd00414f875e4f2e53.tar.gz |
don't get som many fields.. faster loading
-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 69b556a..223a7e1 100644 --- a/models/Access.js +++ b/models/Access.js @@ -99,7 +99,7 @@ AccessSchema.statics = { loadProjects: function(projects, callback) { this.find({ project: { $in: projects } }) - .populate({ path: 'user', select: 'name email status' }) + .populate({ path: 'user', select: '_id name' }) .sort({ 'created': -1 }) .exec(callback); }, |