aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--models/pPost.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/pPost.js b/models/pPost.js
index d36eb36..ad17890 100644
--- a/models/pPost.js
+++ b/models/pPost.js
@@ -36,7 +36,7 @@ pPostSchema.statics = {
load: function(id, callback) {
this.findOne({ _id: id })
- .populate('user')
+ .populate({ path: 'user', select: '_id, name'})
.exec(callback);
},