change mobile number Update Profile get Profile etc

This commit is contained in:
pawan-dot 2024-07-08 13:06:36 +05:30
parent 0d126f6496
commit e9c8880a0d

View File

@ -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) {