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/server.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/server.ts')
-rw-r--r-- | server/middlewares/validators/server.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/middlewares/validators/server.ts b/server/middlewares/validators/server.ts index 10bbefe38..f6177f600 100644 --- a/server/middlewares/validators/server.ts +++ b/server/middlewares/validators/server.ts | |||
@@ -33,11 +33,11 @@ const serverGetValidator = [ | |||
33 | 33 | ||
34 | const contactAdministratorValidator = [ | 34 | const contactAdministratorValidator = [ |
35 | body('fromName') | 35 | body('fromName') |
36 | .custom(isUserDisplayNameValid).withMessage('Should have a valid name'), | 36 | .custom(isUserDisplayNameValid), |
37 | body('fromEmail') | 37 | body('fromEmail') |
38 | .isEmail().withMessage('Should have a valid email'), | 38 | .isEmail(), |
39 | body('body') | 39 | body('body') |
40 | .custom(isValidContactBody).withMessage('Should have a valid body'), | 40 | .custom(isValidContactBody), |
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 contactAdministratorValidator parameters', { parameters: req.body }) | 43 | logger.debug('Checking contactAdministratorValidator parameters', { parameters: req.body }) |