Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions drivers/place/visitor_mailer.cr
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,13 @@ class Place::VisitorMailer < PlaceOS::Driver

booking_type = booking["booking_type"].as_s
template = @group_event_template if booking_type == "group-event"

# a group container lists every visitor, but each visitor is invited from
# their own child booking (its id is what the QR code and check-in use)
if booking_type == "group" && booking.dig?("extension_data", "group_members")
logger.debug { "skipping the #{template} invite to #{guest_details.attendee_email} from group container #{guest_details.booking_id}, their own booking sends it" }
return
end
in GuestNotification
# should never get here
return
Expand Down
Loading
Loading