Skip to content

Commit

Permalink
use enhanced object literals
Browse files Browse the repository at this point in the history
  • Loading branch information
madhums committed Nov 27, 2015
1 parent 18320de commit b8b8c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b8b8c2c

Please sign in to comment.