From 14285eea9c18866edad38b511b3088bcff923d53 Mon Sep 17 00:00:00 2001 From: Mia Bennett Date: Thu, 26 Oct 2023 09:23:46 +0930 Subject: [PATCH] fix(events): add setup/breakdown time to StaffAPI::Event#aument (#302) --- src/models/event.cr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/event.cr b/src/models/event.cr index bbe94602..85c0573b 100644 --- a/src/models/event.cr +++ b/src/models/event.cr @@ -49,6 +49,10 @@ class StaffApi::Event bookings = Booking.where(event_id: meta_id, deleted: false).to_a.tap &.each(&.render_event=(false)) event.linked_bookings = bookings event.extension_data = metadata.try(&.ext_data) + event.setup_time = metadata.try(&.setup_time) + event.breakdown_time = metadata.try(&.breakdown_time) + event.setup_event_id = metadata.try(&.setup_event_id) + event.breakdown_event_id = metadata.try(&.breakdown_event_id) end event.recurring_master_id = event.recurring_event_id