change mobile number Update Profile get Profile etc
This commit is contained in:
parent
0d126f6496
commit
e9c8880a0d
@ -284,10 +284,7 @@ export const EnterPersonalDetails = async (req, res) => {
|
|||||||
personalHistory,
|
personalHistory,
|
||||||
dailyRoutine,
|
dailyRoutine,
|
||||||
} = req.body;
|
} = req.body;
|
||||||
const patientId = req.cookies.patientId;
|
|
||||||
if (!patientId) {
|
|
||||||
return res.status(400).json({ message: 'Patient did not registered Or verified' });
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
const patient = await Patient.findById(req.patient._id);
|
const patient = await Patient.findById(req.patient._id);
|
||||||
if (!patient) {
|
if (!patient) {
|
||||||
|
Loading…
Reference in New Issue
Block a user