Skip to content

Commit

Permalink
fix(events): add setup/breakdown time to StaffAPI::Event#aument (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillfox authored Oct 25, 2023
1 parent b345e7f commit 14285ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/models/event.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 14285ee

Please sign in to comment.