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/user-history.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/user-history.ts')
-rw-r--r-- | server/middlewares/validators/user-history.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/user-history.ts b/server/middlewares/validators/user-history.ts index 541910be5..23a00888c 100644 --- a/server/middlewares/validators/user-history.ts +++ b/server/middlewares/validators/user-history.ts | |||
@@ -7,7 +7,7 @@ import { areValidationErrors } from './shared' | |||
7 | const userHistoryListValidator = [ | 7 | const userHistoryListValidator = [ |
8 | query('search') | 8 | query('search') |
9 | .optional() | 9 | .optional() |
10 | .custom(exists).withMessage('Should have a valid search'), | 10 | .custom(exists), |
11 | 11 | ||
12 | (req: express.Request, res: express.Response, next: express.NextFunction) => { | 12 | (req: express.Request, res: express.Response, next: express.NextFunction) => { |
13 | logger.debug('Checking userHistoryListValidator parameters', { parameters: req.query }) | 13 | logger.debug('Checking userHistoryListValidator parameters', { parameters: req.query }) |
@@ -34,7 +34,7 @@ const userHistoryRemoveAllValidator = [ | |||
34 | 34 | ||
35 | const userHistoryRemoveElementValidator = [ | 35 | const userHistoryRemoveElementValidator = [ |
36 | param('videoId') | 36 | param('videoId') |
37 | .custom(isIdValid).withMessage('Should have a valid video id'), | 37 | .custom(isIdValid), |
38 | 38 | ||
39 | (req: express.Request, res: express.Response, next: express.NextFunction) => { | 39 | (req: express.Request, res: express.Response, next: express.NextFunction) => { |
40 | logger.debug('Checking userHistoryRemoveElementValidator parameters', { parameters: req.params }) | 40 | logger.debug('Checking userHistoryRemoveElementValidator parameters', { parameters: req.params }) |