diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-17 14:58:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-17 14:58:40 +0200 |
commit | a85d530384761a0af833caac9b38b9834517c9fa (patch) | |
tree | 5407dbcc32b6324067632d4c99f25a6b7d851230 /server/middlewares/validators/search.ts | |
parent | 2ec349aa857b0bd8f26de5cd78981d60c9b98a69 (diff) | |
download | PeerTube-a85d530384761a0af833caac9b38b9834517c9fa.tar.gz PeerTube-a85d530384761a0af833caac9b38b9834517c9fa.tar.zst PeerTube-a85d530384761a0af833caac9b38b9834517c9fa.zip |
Remove unnecessary logs
Diffstat (limited to 'server/middlewares/validators/search.ts')
-rw-r--r-- | server/middlewares/validators/search.ts | 7 |
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' | |||
3 | import { isSearchTargetValid } from '@server/helpers/custom-validators/search' | 3 | import { isSearchTargetValid } from '@server/helpers/custom-validators/search' |
4 | import { isHostValid } from '@server/helpers/custom-validators/servers' | 4 | import { isHostValid } from '@server/helpers/custom-validators/servers' |
5 | import { areUUIDsValid, isDateValid, isNotEmptyStringArray, toCompleteUUIDs } from '../../helpers/custom-validators/misc' | 5 | import { areUUIDsValid, isDateValid, isNotEmptyStringArray, toCompleteUUIDs } from '../../helpers/custom-validators/misc' |
6 | import { logger } from '../../helpers/logger' | ||
7 | import { areValidationErrors } from './shared' | 6 | import { areValidationErrors } from './shared' |
8 | 7 | ||
9 | const videosSearchValidator = [ | 8 | const 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() |