From 698e59e4426448c2a0c55efb55f8cacb22ce3909 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 30 Apr 2013 13:29:10 +0200 Subject: removed .populate('user') when we already know the user --- models/access.js | 1 - 1 file changed, 1 deletion(-) (limited to 'models') diff --git a/models/access.js b/models/access.js index ab8d257..ce75f8c 100644 --- a/models/access.js +++ b/models/access.js @@ -33,7 +33,6 @@ AccessSchema.statics = { loadUser: function(id, callback) { this.find({ user: id }) - .populate('user') .populate('project') .sort({ 'created': -1 }) // sort by date .exec(callback); -- cgit v1.2.3