found the problem

This commit is contained in:
dmitryturcan 2024-09-02 09:43:50 +03:00
parent ee4a0bcc86
commit 44b4e0f55d

View file

@ -491,8 +491,7 @@ class Booking extends EA_Controller
'appointment_id' => $appointment['id'], 'appointment_id' => $appointment['id'],
'appointment_hash' => $appointment['hash'], 'appointment_hash' => $appointment['hash'],
]; ];
var_dump($response);
die();
json_response($response); json_response($response);
} catch (Throwable $e) { } catch (Throwable $e) {
json_exception($e); json_exception($e);
@ -533,8 +532,8 @@ class Booking extends EA_Controller
$service = $this->services_model->find($appointment['id_services']); $service = $this->services_model->find($appointment['id_services']);
$exclude_appointment_id = $appointment['id'] ?? null; $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( $available_hours = $this->availability->get_available_hours(