aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/validators/search.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/search.ts b/server/middlewares/validators/search.ts
index 7313bc055..78213c70d 100644
--- a/server/middlewares/validators/search.ts
+++ b/server/middlewares/validators/search.ts
@@ -28,7 +28,7 @@ const videosSearchValidator = [
28 } 28 }
29] 29]
30 30
31const videoChannelsSearchValidator = [ 31const videoChannelsListSearchValidator = [
32 query('search').not().isEmpty().withMessage('Should have a valid search'), 32 query('search').not().isEmpty().withMessage('Should have a valid search'),
33 query('searchTarget').optional().custom(isSearchTargetValid).withMessage('Should have a valid search target'), 33 query('searchTarget').optional().custom(isSearchTargetValid).withMessage('Should have a valid search target'),
34 34
@@ -57,6 +57,6 @@ const videoChannelsOwnSearchValidator = [
57 57
58export { 58export {
59 videosSearchValidator, 59 videosSearchValidator,
60 videoChannelsSearchValidator, 60 videoChannelsListSearchValidator,
61 videoChannelsOwnSearchValidator 61 videoChannelsOwnSearchValidator
62} 62}