Skip to content
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: 3 additions & 1 deletion src/placeos-models/booking.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "set"

Check warning on line 1 in src/placeos-models/booking.cr

View workflow job for this annotation

GitHub Actions / Ameba

Lint/Formatting

Use built-in formatter to format this source
Raw output
> require "set"
  ^
require "json"
require "./base/model"
require "./attendee"
Expand Down Expand Up @@ -496,7 +496,7 @@
end

def clashing? : Bool
return false if self.deleted || self.rejected || self.checked_out_at
return false if self.deleted || self.rejected || self.checked_out_at || self.booking_type.downcase == "visitor"
clashing_bookings.size > 0
end

Expand Down Expand Up @@ -591,6 +591,8 @@
end

def clashing_bookings : Array(Booking)
return [] of Booking if self.booking_type.downcase == "visitor"

update_assets

# we need to check for clashes against each recurrence
Expand Down
Loading