]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/user-history.ts
Support studio transcoding in peertube runner
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / user-history.ts
index 23a00888ce41902ad97658cc6e2b96f42021381e..f2dae313437ad42c8a8835b25bdb21b52bd6504b 100644 (file)
@@ -1,7 +1,6 @@
 import express from 'express'
 import { body, param, query } from 'express-validator'
 import { exists, isDateValid, isIdValid } from '../../helpers/custom-validators/misc'
-import { logger } from '../../helpers/logger'
 import { areValidationErrors } from './shared'
 
 const userHistoryListValidator = [
@@ -10,8 +9,6 @@ const userHistoryListValidator = [
     .custom(exists),
 
   (req: express.Request, res: express.Response, next: express.NextFunction) => {
-    logger.debug('Checking userHistoryListValidator parameters', { parameters: req.query })
-
     if (areValidationErrors(req, res)) return
 
     return next()
@@ -24,8 +21,6 @@ const userHistoryRemoveAllValidator = [
     .custom(isDateValid).withMessage('Should have a before date that conforms to ISO 8601'),
 
   (req: express.Request, res: express.Response, next: express.NextFunction) => {
-    logger.debug('Checking userHistoryRemoveAllValidator parameters', { parameters: req.body })
-
     if (areValidationErrors(req, res)) return
 
     return next()
@@ -37,8 +32,6 @@ const userHistoryRemoveElementValidator = [
     .custom(isIdValid),
 
   (req: express.Request, res: express.Response, next: express.NextFunction) => {
-    logger.debug('Checking userHistoryRemoveElementValidator parameters', { parameters: req.params })
-
     if (areValidationErrors(req, res)) return
 
     return next()