Skip to content

Commit

Permalink
updated to return the req.send() to be consistent with the rest of ou…
Browse files Browse the repository at this point in the history
…r codebase
  • Loading branch information
lirantal committed Jan 13, 2015
1 parent 4871173 commit 00b5ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/articles.server.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ exports.articleByID = function(req, res, next, id) {
Article.findById(id).populate('user', 'displayName').exec(function(err, article) {
if (err) return next(err);
if (!article) {
res.status(404).send({
return res.status(404).send({
message: 'Article not found'
});
}
Expand Down

0 comments on commit 00b5ff0

Please sign in to comment.