diff --git a/resources/Patients/PatientController.js b/resources/Patients/PatientController.js index 2dc2763..4ea49ad 100644 --- a/resources/Patients/PatientController.js +++ b/resources/Patients/PatientController.js @@ -32,7 +32,7 @@ export const register = async (req, res) => { - return res.status(200).json({ patient, message: `OTP sent to your mobile number ${fullMobileNumber} successfully` }); + return res.status(200).json({ message: `OTP sent to your mobile number ${fullMobileNumber} successfully` }); } catch (error) { res.status(500).json({ message: error.message ? error.message : "Server error!",