diff --git a/app/controllers/articles.js b/app/controllers/articles.js index 5a218b1b..16a7fad5 100644 --- a/app/controllers/articles.js +++ b/app/controllers/articles.js @@ -11,8 +11,6 @@ var mongoose = require('mongoose'), * Find article by id */ exports.article = function(req, res, next, id) { - var User = mongoose.model('User'); - Article.load(id, function(err, article) { if (err) return next(err); if (!article) return next(new Error('Failed to load article ' + id)); @@ -82,4 +80,4 @@ exports.all = function(req, res) { res.jsonp(articles); } }); -}; \ No newline at end of file +};