More correct error message on no video find with those tags

This commit is contained in:
Kasper Rynning-Tønnesen
2019-02-25 00:01:04 +01:00
parent 6c0c110b68
commit 1a66320029

View File

@@ -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;