mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
More correct error message on no video find with those tags
This commit is contained in:
@@ -802,7 +802,7 @@ router.route('/api/search/:channel_name/').post(function(req, res) {
|
||||
}
|
||||
db.collection(channel_name).find({tags: {$regex : ".*" + searchQuery + ".*"}}, function(e, results) {
|
||||
if(results.length == 0) {
|
||||
res.status(404).send(error.not_found.list);
|
||||
res.status(404).send(error.not_found.local);
|
||||
return;
|
||||
}
|
||||
var to_return = error.no_error;
|
||||
|
||||
Reference in New Issue
Block a user