From e9c8880a0df230512019d9e8e9cf3d1cef8a6fad Mon Sep 17 00:00:00 2001 From: pawan-dot <71133473+pawan-dot@users.noreply.github.com> Date: Mon, 8 Jul 2024 13:06:36 +0530 Subject: [PATCH] change mobile number Update Profile get Profile etc --- resources/Patients/PatientController.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/Patients/PatientController.js b/resources/Patients/PatientController.js index 4f7d469..11f65e3 100644 --- a/resources/Patients/PatientController.js +++ b/resources/Patients/PatientController.js @@ -284,10 +284,7 @@ export const EnterPersonalDetails = async (req, res) => { personalHistory, dailyRoutine, } = req.body; - const patientId = req.cookies.patientId; - if (!patientId) { - return res.status(400).json({ message: 'Patient did not registered Or verified' }); - } + try { const patient = await Patient.findById(req.patient._id); if (!patient) {