diff options
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 }) |