Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(events): add setup/breakdown time to StaffAPI::Event#aument #302

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading