aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/user-history.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-17 14:58:40 +0200
committerChocobozzz <me@florianbigard.com>2022-08-17 14:58:40 +0200
commita85d530384761a0af833caac9b38b9834517c9fa (patch)
tree5407dbcc32b6324067632d4c99f25a6b7d851230 /server/middlewares/validators/user-history.ts
parent2ec349aa857b0bd8f26de5cd78981d60c9b98a69 (diff)
downloadPeerTube-a85d530384761a0af833caac9b38b9834517c9fa.tar.gz
PeerTube-a85d530384761a0af833caac9b38b9834517c9fa.tar.zst
PeerTube-a85d530384761a0af833caac9b38b9834517c9fa.zip
Remove unnecessary logs
Diffstat (limited to 'server/middlewares/validators/user-history.ts')
-rw-r--r--server/middlewares/validators/user-history.ts7
1 files changed, 0 insertions, 7 deletions
diff --git a/server/middlewares/validators/user-history.ts b/server/middlewares/validators/user-history.ts
index 23a00888c..f2dae3134 100644
--- a/server/middlewares/validators/user-history.ts
+++ b/server/middlewares/validators/user-history.ts
@@ -1,7 +1,6 @@
1import express from 'express' 1import express from 'express'
2import { body, param, query } from 'express-validator' 2import { body, param, query } from 'express-validator'
3import { exists, isDateValid, isIdValid } from '../../helpers/custom-validators/misc' 3import { exists, isDateValid, isIdValid } from '../../helpers/custom-validators/misc'
4import { logger } from '../../helpers/logger'
5import { areValidationErrors } from './shared' 4import { areValidationErrors } from './shared'
6 5
7const userHistoryListValidator = [ 6const userHistoryListValidator = [
@@ -10,8 +9,6 @@ const userHistoryListValidator = [
10 .custom(exists), 9 .custom(exists),
11 10
12 (req: express.Request, res: express.Response, next: express.NextFunction) => { 11 (req: express.Request, res: express.Response, next: express.NextFunction) => {
13 logger.debug('Checking userHistoryListValidator parameters', { parameters: req.query })
14
15 if (areValidationErrors(req, res)) return 12 if (areValidationErrors(req, res)) return
16 13
17 return next() 14 return next()
@@ -24,8 +21,6 @@ const userHistoryRemoveAllValidator = [
24 .custom(isDateValid).withMessage('Should have a before date that conforms to ISO 8601'), 21 .custom(isDateValid).withMessage('Should have a before date that conforms to ISO 8601'),
25 22
26 (req: express.Request, res: express.Response, next: express.NextFunction) => { 23 (req: express.Request, res: express.Response, next: express.NextFunction) => {
27 logger.debug('Checking userHistoryRemoveAllValidator parameters', { parameters: req.body })
28
29 if (areValidationErrors(req, res)) return 24 if (areValidationErrors(req, res)) return
30 25
31 return next() 26 return next()
@@ -37,8 +32,6 @@ const userHistoryRemoveElementValidator = [
37 .custom(isIdValid), 32 .custom(isIdValid),
38 33
39 (req: express.Request, res: express.Response, next: express.NextFunction) => { 34 (req: express.Request, res: express.Response, next: express.NextFunction) => {
40 logger.debug('Checking userHistoryRemoveElementValidator parameters', { parameters: req.params })
41
42 if (areValidationErrors(req, res)) return 35 if (areValidationErrors(req, res)) return
43 36
44 return next() 37 return next()