aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/models
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-04-30 13:29:10 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-04-30 13:29:10 +0200
commit698e59e4426448c2a0c55efb55f8cacb22ce3909 (patch)
treec929e442676d5700038881b433fa25ba29e3d52d /models
parentadded shorturl for projects (diff)
downloadDivid-698e59e4426448c2a0c55efb55f8cacb22ce3909.tar.gz
removed .populate('user') when we already know the user
Diffstat (limited to 'models')
-rw-r--r--models/access.js1
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);