From 488860f9fec134d61b1c5957af6d81868bf71862 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 6 Apr 2020 20:40:32 +0200 Subject: [PATCH] Corrected call to the appointments model. --- application/controllers/api/v1/Appointments.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/api/v1/Appointments.php b/application/controllers/api/v1/Appointments.php index 6e3e89b5..81664a5c 100644 --- a/application/controllers/api/v1/Appointments.php +++ b/application/controllers/api/v1/Appointments.php @@ -59,7 +59,7 @@ class Appointments extends API_V1_Controller { $conditions['id'] = $id; } - $appointments = $this->appointments_model->get_batch($conditions, array_key_exists('aggregates', $_GET)); + $appointments = $this->appointments_model->get_batch($conditions, NULL, NULL, NULL, array_key_exists('aggregates', $_GET)); if ($id !== NULL && count($appointments) === 0) { @@ -90,7 +90,7 @@ class Appointments extends API_V1_Controller { { try { - // Insert the appointment to the database. + // Insert the appointment to the database. $request = new Request(); $appointment = $request->getBody(); $this->parser->decode($appointment); @@ -123,7 +123,7 @@ class Appointments extends API_V1_Controller { { try { - // Update the appointment record. + // Update the appointment record. $batch = $this->appointments_model->get_batch('id = ' . $id); if ($id !== NULL && count($batch) === 0)