X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fvideos%2Fvideo-files.ts;h=b44c997e3d6acdb590236c409bdfc742f5cef5e8;hb=396f6f0140b0f76162e2378fd5a61e2f888673ed;hp=b3db3f4f744fb5fb1d0ff7867162b357af7c334d;hpb=97eba003a9d0adcb0cab9190f566327b1417c7d3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/videos/video-files.ts b/server/middlewares/validators/videos/video-files.ts index b3db3f4f7..b44c997e3 100644 --- a/server/middlewares/validators/videos/video-files.ts +++ b/server/middlewares/validators/videos/video-files.ts @@ -41,7 +41,7 @@ const videoFilesDeleteWebTorrentFileValidator = [ isValidVideoIdParam('id'), param('videoFileId') - .custom(isIdValid).withMessage('Should have a valid file id'), + .custom(isIdValid), async (req: express.Request, res: express.Response, next: express.NextFunction) => { logger.debug('Checking videoFilesDeleteWebTorrentFile parameters', { parameters: req.params }) @@ -109,7 +109,7 @@ const videoFilesDeleteHLSFileValidator = [ isValidVideoIdParam('id'), param('videoFileId') - .custom(isIdValid).withMessage('Should have a valid file id'), + .custom(isIdValid), async (req: express.Request, res: express.Response, next: express.NextFunction) => { logger.debug('Checking videoFilesDeleteHLSFile parameters', { parameters: req.params })