From 44b4e0f55d4a6e1c81ca018a0f92c305148ae48b Mon Sep 17 00:00:00 2001 From: dmitryturcan Date: Mon, 2 Sep 2024 09:43:50 +0300 Subject: [PATCH] found the problem --- application/controllers/Booking.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/application/controllers/Booking.php b/application/controllers/Booking.php index ba51314f..8debcf5a 100755 --- a/application/controllers/Booking.php +++ b/application/controllers/Booking.php @@ -491,8 +491,7 @@ class Booking extends EA_Controller 'appointment_id' => $appointment['id'], 'appointment_hash' => $appointment['hash'], ]; - var_dump($response); - die(); + json_response($response); } catch (Throwable $e) { json_exception($e); @@ -533,8 +532,8 @@ class Booking extends EA_Controller $service = $this->services_model->find($appointment['id_services']); $exclude_appointment_id = $appointment['id'] ?? null; - die(); - $provider = $this->providers_model->find($post_data['id_users_provider']); + + $provider = $this->providers_model->find($appointment['id_users_provider']); $available_hours = $this->availability->get_available_hours(