mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 11:07:10 +02:00
updated to return the req.send() to be consistent with the rest of our codebase
This commit is contained in:
@@ -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'
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user