diff options
Diffstat (limited to 'server/middlewares/validators/videos/video-files.ts')
-rw-r--r-- | server/middlewares/validators/videos/video-files.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 = [ | |||
41 | isValidVideoIdParam('id'), | 41 | isValidVideoIdParam('id'), |
42 | 42 | ||
43 | param('videoFileId') | 43 | param('videoFileId') |
44 | .custom(isIdValid).withMessage('Should have a valid file id'), | 44 | .custom(isIdValid), |
45 | 45 | ||
46 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 46 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
47 | logger.debug('Checking videoFilesDeleteWebTorrentFile parameters', { parameters: req.params }) | 47 | logger.debug('Checking videoFilesDeleteWebTorrentFile parameters', { parameters: req.params }) |
@@ -109,7 +109,7 @@ const videoFilesDeleteHLSFileValidator = [ | |||
109 | isValidVideoIdParam('id'), | 109 | isValidVideoIdParam('id'), |
110 | 110 | ||
111 | param('videoFileId') | 111 | param('videoFileId') |
112 | .custom(isIdValid).withMessage('Should have a valid file id'), | 112 | .custom(isIdValid), |
113 | 113 | ||
114 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 114 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
115 | logger.debug('Checking videoFilesDeleteHLSFile parameters', { parameters: req.params }) | 115 | logger.debug('Checking videoFilesDeleteHLSFile parameters', { parameters: req.params }) |