Luson045 / medi-connect

Medi-connect is an online hospital appointment booking website
https://medi-connect-in.netlify.app/
MIT License
1 stars 3 forks source link

Update the hospital data when user data is updated in real time #9

Open Luson045 opened 3 hours ago

Luson045 commented 3 hours ago

So, I made this feature of appointment booking, where users can book appointment, here are the screenshots 1) User Panel 2)Hospital Panel

image image

This is the user profile page

image

now whenever the hospital deletes/ mark as done then it should be updated in the user database too

but it's not working, whenever the appointment is deleted from the hospital database it remains in the user database.

Fix this issue as described above

reference files - Frontend ---> HospitalPanal.jsx, Profile.jsx, Backend------>index.js in hospital and user files , DB Models---> server/models