fix: add toggle action update controller

This commit is contained in:
2026-05-22 16:34:37 +05:30
parent 5eecc5092d
commit 12d9f2a4cb
4 changed files with 92 additions and 118 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ export default function DoctorPage() {
isActive: newStatus,
};
await updateDoctorApi(doc.doctorId, payload);
await updateDoctorApi(doc.doctorId, payload, "toggleStatus");
fetchAll();
} catch (err) {