From f8c028dbed37efd031046ccd00414f875e4f2e53 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 24 May 2013 16:10:30 +0200 Subject: don't get som many fields.. faster loading --- models/Access.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }, -- cgit v1.2.3