diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-17 14:27:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-17 14:27:04 +0200 |
commit | 396f6f0140b0f76162e2378fd5a61e2f888673ed (patch) | |
tree | a5bd668bfc7dca7f311b9fc42ebb8bd01f462648 /server/middlewares/validators/videos/video-view.ts | |
parent | 97eba003a9d0adcb0cab9190f566327b1417c7d3 (diff) | |
download | PeerTube-396f6f0140b0f76162e2378fd5a61e2f888673ed.tar.gz PeerTube-396f6f0140b0f76162e2378fd5a61e2f888673ed.tar.zst PeerTube-396f6f0140b0f76162e2378fd5a61e2f888673ed.zip |
Cleanup useless express validator messages
Diffstat (limited to 'server/middlewares/validators/videos/video-view.ts')
-rw-r--r-- | server/middlewares/validators/videos/video-view.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/videos/video-view.ts b/server/middlewares/validators/videos/video-view.ts index 2edcd140f..4927c04ad 100644 --- a/server/middlewares/validators/videos/video-view.ts +++ b/server/middlewares/validators/videos/video-view.ts | |||
@@ -10,7 +10,7 @@ import { getCachedVideoDuration } from '@server/lib/video' | |||
10 | 10 | ||
11 | const getVideoLocalViewerValidator = [ | 11 | const getVideoLocalViewerValidator = [ |
12 | param('localViewerId') | 12 | param('localViewerId') |
13 | .custom(isIdValid).withMessage('Should have a valid local viewer id'), | 13 | .custom(isIdValid), |
14 | 14 | ||
15 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 15 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
16 | logger.debug('Checking getVideoLocalViewerValidator parameters', { parameters: req.params }) | 16 | logger.debug('Checking getVideoLocalViewerValidator parameters', { parameters: req.params }) |
@@ -37,7 +37,7 @@ const videoViewValidator = [ | |||
37 | body('currentTime') | 37 | body('currentTime') |
38 | .optional() // TODO: remove optional in a few versions, introduced in 4.2 | 38 | .optional() // TODO: remove optional in a few versions, introduced in 4.2 |
39 | .customSanitizer(toIntOrNull) | 39 | .customSanitizer(toIntOrNull) |
40 | .custom(isIntOrNull).withMessage('Should have correct current time'), | 40 | .custom(isIntOrNull), |
41 | 41 | ||
42 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 42 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
43 | logger.debug('Checking videoView parameters', { parameters: req.body }) | 43 | logger.debug('Checking videoView parameters', { parameters: req.body }) |