From b8b8c2c9930a604abda12497d01dde9260db4f05 Mon Sep 17 00:00:00 2001 From: Madhusudhan Srinivasa Date: Fri, 27 Nov 2015 17:35:33 +0100 Subject: [PATCH] use enhanced object literals --- app/models/article.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/article.js b/app/models/article.js index 016173da9..68ea2d7c7 100644 --- a/app/models/article.js +++ b/app/models/article.js @@ -148,8 +148,8 @@ ArticleSchema.statics = { * @api private */ - load: function (id) { - return this.findOne({ _id : id }) + load: function (_id) { + return this.findOne({ _id }) .populate('user', 'name email username') .populate('comments.user') .exec();