From 35ca5e7e45636e8b5c10c2d865764d7e6f7cfc94 Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Sat, 24 Jun 2023 19:46:19 +0300 Subject: [PATCH] login middleware --- src/middlewares/usersResourceValidation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/middlewares/usersResourceValidation.ts b/src/middlewares/usersResourceValidation.ts index 7282a4f..096d7c3 100644 --- a/src/middlewares/usersResourceValidation.ts +++ b/src/middlewares/usersResourceValidation.ts @@ -11,6 +11,7 @@ const isValidLogin = async (req: Request, res: Response, next: NextFunction) => error.status = 'fail'; return next(error); } + next(); }