Use the unavailabilities model to save the sync events (#1363)

This commit is contained in:
Alex Tselegidis 2023-07-11 07:46:28 +02:00
parent 792e0545e8
commit 87e27d4070
1 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ class Google extends EA_Controller {
$CI->load->library('google_sync');
$CI->load->model('appointments_model');
$CI->load->model('unavailabilities_model');
$CI->load->model('providers_model');
$CI->load->model('services_model');
$CI->load->model('customers_model');
@ -237,7 +238,7 @@ class Google extends EA_Controller {
'id_services' => NULL,
];
$CI->appointments_model->save($appointment);
$CI->unavailabilities_model->save($appointment);
}
json_response([