diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-07-27 17:00:39 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-07-29 18:15:53 +0200 |
commit | 7b3909644dd7cb8be1caad537bb40605e5f059d4 (patch) | |
tree | 499d23362c0532cd689624a35b98d8f51ba73ed4 /server/middlewares/validators | |
parent | 225a7682e68d81c3c90ff50e704db4ab5f81a341 (diff) | |
download | PeerTube-7b3909644dd7cb8be1caad537bb40605e5f059d4.tar.gz PeerTube-7b3909644dd7cb8be1caad537bb40605e5f059d4.tar.zst PeerTube-7b3909644dd7cb8be1caad537bb40605e5f059d4.zip |
test search for subscriptions and video-channels
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r-- | server/middlewares/validators/search.ts | 4 |
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 | ||
31 | const videoChannelsSearchValidator = [ | 31 | const 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 | ||
58 | export { | 58 | export { |
59 | videosSearchValidator, | 59 | videosSearchValidator, |
60 | videoChannelsSearchValidator, | 60 | videoChannelsListSearchValidator, |
61 | videoChannelsOwnSearchValidator | 61 | videoChannelsOwnSearchValidator |
62 | } | 62 | } |