jam411 3 лет назад
Родитель
Сommit
2c2dcdf1d4
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      packages/app/src/server/middlewares/invited-form-validator.ts

+ 3 - 2
packages/app/src/server/middlewares/invited-form-validator.ts

@@ -1,6 +1,6 @@
 import { body, validationResult } from 'express-validator';
-import { Request } from 'express-validator/src/base';
 
+// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
 export const invitedRules = () => {
   return [
     body('invitedForm.username')
@@ -21,7 +21,8 @@ export const invitedRules = () => {
   ];
 };
 
-export const invitedValidation = (req: Request, _res: any, next: () => any) => {
+// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
+export const invitedValidation = (req, _res, next) => {
   const form = req.body;
 
   const errors = validationResult(req);