aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-24 16:10:30 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-24 16:10:30 +0200
commitf8c028dbed37efd031046ccd00414f875e4f2e53 (patch)
tree9748a3cdc6597d384f0e7fb5130e1d457606769f
parentdon't get so many fields.. faster loading (diff)
downloadDivid-f8c028dbed37efd031046ccd00414f875e4f2e53.tar.gz
don't get som many fields.. faster loading
-rw-r--r--models/Access.js2
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);
},