From c7371090ba0786eb600cc2f2531701724200a6e1 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 23 Jan 2023 07:50:24 +0100 Subject: [PATCH] Add missing API fields to Unavailabilities_model.php (#1323) --- application/models/Unavailabilities_model.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/application/models/Unavailabilities_model.php b/application/models/Unavailabilities_model.php index 5bbf6bea..aa139816 100644 --- a/application/models/Unavailabilities_model.php +++ b/application/models/Unavailabilities_model.php @@ -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. *