aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/server.ts')
-rw-r--r--server/middlewares/validators/server.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/server/middlewares/validators/server.ts b/server/middlewares/validators/server.ts
index f6177f600..d040e8a1f 100644
--- a/server/middlewares/validators/server.ts
+++ b/server/middlewares/validators/server.ts
@@ -13,8 +13,6 @@ const serverGetValidator = [
13 body('host').custom(isHostValid).withMessage('Should have a valid host'), 13 body('host').custom(isHostValid).withMessage('Should have a valid host'),
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 serverGetValidator parameters', { parameters: req.body })
17
18 if (areValidationErrors(req, res)) return 16 if (areValidationErrors(req, res)) return
19 17
20 const server = await ServerModel.loadByHost(req.body.host) 18 const server = await ServerModel.loadByHost(req.body.host)
@@ -40,8 +38,6 @@ const contactAdministratorValidator = [
40 .custom(isValidContactBody), 38 .custom(isValidContactBody),
41 39
42 async (req: express.Request, res: express.Response, next: express.NextFunction) => { 40 async (req: express.Request, res: express.Response, next: express.NextFunction) => {
43 logger.debug('Checking contactAdministratorValidator parameters', { parameters: req.body })
44
45 if (areValidationErrors(req, res)) return 41 if (areValidationErrors(req, res)) return
46 42
47 if (CONFIG.CONTACT_FORM.ENABLED === false) { 43 if (CONFIG.CONTACT_FORM.ENABLED === false) {