updated to return the req.send() to be consistent with the rest of our codebase

This commit is contained in:
Liran Tal
2015-01-13 16:54:20 +02:00
parent 4871173019
commit 00b5ff017e

View File

@@ -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'
});
}