X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fbulk.ts;h=a1cea8032e3dcbc68c824e15d92123029a4d9f7f;hb=9972ace3a3bc65865fb3aaaa865a400386e49252;hp=5bc15e076169bb598de457a332cddeab7589e26e;hpb=396f6f0140b0f76162e2378fd5a61e2f888673ed;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/bulk.ts b/server/middlewares/validators/bulk.ts index 5bc15e076..a1cea8032 100644 --- a/server/middlewares/validators/bulk.ts +++ b/server/middlewares/validators/bulk.ts @@ -3,7 +3,6 @@ import { body } from 'express-validator' import { isBulkRemoveCommentsOfScopeValid } from '@server/helpers/custom-validators/bulk' import { HttpStatusCode, UserRight } from '@shared/models' import { BulkRemoveCommentsOfBody } from '@shared/models/bulk/bulk-remove-comments-of-body.model' -import { logger } from '../../helpers/logger' import { areValidationErrors, doesAccountNameWithHostExist } from './shared' const bulkRemoveCommentsOfValidator = [ @@ -13,8 +12,6 @@ const bulkRemoveCommentsOfValidator = [ .custom(isBulkRemoveCommentsOfScopeValid), async (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking bulkRemoveCommentsOfValidator parameters', { parameters: req.body }) - if (areValidationErrors(req, res)) return if (!await doesAccountNameWithHostExist(req.body.accountName, res)) return