aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/search.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/search.ts')
-rw-r--r--server/middlewares/validators/search.ts7
1 files changed, 0 insertions, 7 deletions
diff --git a/server/middlewares/validators/search.ts b/server/middlewares/validators/search.ts
index 827132468..a63fd0893 100644
--- a/server/middlewares/validators/search.ts
+++ b/server/middlewares/validators/search.ts
@@ -3,7 +3,6 @@ import { query } from 'express-validator'
3import { isSearchTargetValid } from '@server/helpers/custom-validators/search' 3import { isSearchTargetValid } from '@server/helpers/custom-validators/search'
4import { isHostValid } from '@server/helpers/custom-validators/servers' 4import { isHostValid } from '@server/helpers/custom-validators/servers'
5import { areUUIDsValid, isDateValid, isNotEmptyStringArray, toCompleteUUIDs } from '../../helpers/custom-validators/misc' 5import { areUUIDsValid, isDateValid, isNotEmptyStringArray, toCompleteUUIDs } from '../../helpers/custom-validators/misc'
6import { logger } from '../../helpers/logger'
7import { areValidationErrors } from './shared' 6import { areValidationErrors } from './shared'
8 7
9const videosSearchValidator = [ 8const videosSearchValidator = [
@@ -47,8 +46,6 @@ const videosSearchValidator = [
47 .custom(isSearchTargetValid), 46 .custom(isSearchTargetValid),
48 47
49 (req: express.Request, res: express.Response, next: express.NextFunction) => { 48 (req: express.Request, res: express.Response, next: express.NextFunction) => {
50 logger.debug('Checking videos search query', { parameters: req.query })
51
52 if (areValidationErrors(req, res)) return 49 if (areValidationErrors(req, res)) return
53 50
54 return next() 51 return next()
@@ -74,8 +71,6 @@ const videoChannelsListSearchValidator = [
74 .custom(isNotEmptyStringArray).withMessage('Should have valid array of handles'), 71 .custom(isNotEmptyStringArray).withMessage('Should have valid array of handles'),
75 72
76 (req: express.Request, res: express.Response, next: express.NextFunction) => { 73 (req: express.Request, res: express.Response, next: express.NextFunction) => {
77 logger.debug('Checking video channels search query', { parameters: req.query })
78
79 if (areValidationErrors(req, res)) return 74 if (areValidationErrors(req, res)) return
80 75
81 return next() 76 return next()
@@ -102,8 +97,6 @@ const videoPlaylistsListSearchValidator = [
102 .custom(areUUIDsValid).withMessage('Should have valid array of uuid'), 97 .custom(areUUIDsValid).withMessage('Should have valid array of uuid'),
103 98
104 (req: express.Request, res: express.Response, next: express.NextFunction) => { 99 (req: express.Request, res: express.Response, next: express.NextFunction) => {
105 logger.debug('Checking video playlists search query', { parameters: req.query })
106
107 if (areValidationErrors(req, res)) return 100 if (areValidationErrors(req, res)) return
108 101
109 return next() 102 return next()