From 335f43573b0817e267c94b2bc9c8af3aaf79029e Mon Sep 17 00:00:00 2001 From: sabarinathan Date: Tue, 4 Feb 2025 10:15:51 +0530 Subject: [PATCH] changes for mongo port --- compose.yaml | 2 +- src/api-server/controller/user-Controller.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 105fdcd..72c39f6 100644 --- a/compose.yaml +++ b/compose.yaml @@ -36,7 +36,7 @@ services: image: mongo:latest container_name: mongo-Dwinzocontainer ports: - - "27017:27017" + - "27020:27017" volumes: - mongo-data:/data/db networks: diff --git a/src/api-server/controller/user-Controller.ts b/src/api-server/controller/user-Controller.ts index 64c6e8c..8d1a810 100644 --- a/src/api-server/controller/user-Controller.ts +++ b/src/api-server/controller/user-Controller.ts @@ -50,7 +50,7 @@ export class user { }); if (existingMail === null || !existingMail) { - res.status(404).json({ message: "User Not Found!!! Kindly signup..." }); + res.status(401).json({ message: "User Not Found!!! Kindly signup..." }); } else { const hashedpassword= existingMail.password const checkpassword = await hashValidator(