mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-26 16:42:27 +03:00
Use the unavailabilities model to save the sync events (#1363)
This commit is contained in:
parent
792e0545e8
commit
87e27d4070
1 changed files with 2 additions and 1 deletions
|
@ -50,6 +50,7 @@ class Google extends EA_Controller {
|
||||||
$CI->load->library('google_sync');
|
$CI->load->library('google_sync');
|
||||||
|
|
||||||
$CI->load->model('appointments_model');
|
$CI->load->model('appointments_model');
|
||||||
|
$CI->load->model('unavailabilities_model');
|
||||||
$CI->load->model('providers_model');
|
$CI->load->model('providers_model');
|
||||||
$CI->load->model('services_model');
|
$CI->load->model('services_model');
|
||||||
$CI->load->model('customers_model');
|
$CI->load->model('customers_model');
|
||||||
|
@ -237,7 +238,7 @@ class Google extends EA_Controller {
|
||||||
'id_services' => NULL,
|
'id_services' => NULL,
|
||||||
];
|
];
|
||||||
|
|
||||||
$CI->appointments_model->save($appointment);
|
$CI->unavailabilities_model->save($appointment);
|
||||||
}
|
}
|
||||||
|
|
||||||
json_response([
|
json_response([
|
||||||
|
|
Loading…
Reference in a new issue