diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-30 13:29:10 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-30 13:29:10 +0200 |
commit | 698e59e4426448c2a0c55efb55f8cacb22ce3909 (patch) | |
tree | c929e442676d5700038881b433fa25ba29e3d52d /models | |
parent | added shorturl for projects (diff) | |
download | Divid-698e59e4426448c2a0c55efb55f8cacb22ce3909.tar.gz |
removed .populate('user') when we already know the user
Diffstat (limited to 'models')
-rw-r--r-- | models/access.js | 1 |
1 files changed, 0 insertions, 1 deletions
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); |