Add missing API fields to Unavailabilities_model.php (#1323)

This commit is contained in:
Alex Tselegidis 2023-01-23 07:50:24 +01:00
parent eb863ea044
commit c7371090ba

View file

@ -28,6 +28,23 @@ class Unavailabilities_model extends EA_Model {
'id_services' => 'integer',
];
/**
* @var array
*/
protected $api_resource = [
'id' => 'id',
'book' => 'book_datetime',
'start' => 'start_datetime',
'end' => 'end_datetime',
'location' => 'location',
'color' => 'color',
'status' => 'status',
'notes' => 'notes',
'hash' => 'hash',
'providerId' => 'id_users_provider',
'googleCalendarId' => 'id_google_calendar',
];
/**
* Save (insert or update) an unavailability.
*