From 27dffe9fa63f1654d487aa5ac41ef6ab92b62d35 Mon Sep 17 00:00:00 2001 From: Aman Rawat <35992750+theamanrawat@users.noreply.github.com> Date: Mon, 9 Mar 2026 13:12:01 +0530 Subject: [PATCH] Fixed --- server/src/controllers/authController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/controllers/authController.ts b/server/src/controllers/authController.ts index f196e4dd5..3f837f632 100755 --- a/server/src/controllers/authController.ts +++ b/server/src/controllers/authController.ts @@ -100,8 +100,8 @@ class AuthController { editUser = async (req: Request, res: Response, next: NextFunction) => { try { - editUserBodyValidation.parse(req.body); - const updatedUser = await this.userService.editUser(req.body, req.file, req.user); + const validatedBody = editUserBodyValidation.parse(req.body); + const updatedUser = await this.userService.editUser(validatedBody, req.file, req.user); res.status(200).json({ success: true,