update apicall method name

This commit is contained in:
2024-11-08 14:46:45 +02:00
parent 87d2489186
commit 23c5a2dc63

View File

@@ -168,14 +168,14 @@ class _PatientManagerState extends State<PatientManager> {
void checkforchange() { void checkforchange() {
if (start == true) { if (start == true) {
setState(() { setState(() {
patientQueueResults = MIHApiCalls.fetchPatientQueue( patientQueueResults = MIHApiCalls.fetchBusinessAppointmentsAPICall(
queueDateController.text, widget.arguments.business!.business_id); queueDateController.text, widget.arguments.business!.business_id);
start = false; start = false;
}); });
} }
if (formattedDate != queueDateController.text) { if (formattedDate != queueDateController.text) {
setState(() { setState(() {
patientQueueResults = MIHApiCalls.fetchPatientQueue( patientQueueResults = MIHApiCalls.fetchBusinessAppointmentsAPICall(
queueDateController.text, widget.arguments.business!.business_id); queueDateController.text, widget.arguments.business!.business_id);
formattedDate = queueDateController.text; formattedDate = queueDateController.text;
}); });