mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-30 11:09:18 +01:00
fix(core): fixed all res.send(message) of not found from db by id
This commit is contained in:
@@ -187,9 +187,7 @@ exports.forumByID = function (req, res, next, id) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
} else if (!forum) {
|
||||
return res.status(404).send({
|
||||
message: 'No forum with that identifier has been found'
|
||||
});
|
||||
return res.status(404).send();
|
||||
}
|
||||
req.forum = forum;
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user