Skip to content

Commit

Permalink
feat(bookings): add a min and max ad-hoc duration
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Sep 4, 2023
1 parent 77ebf45 commit 164e7ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/place/bookings.cr
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ class Place::Bookings < PlaceOS::Driver
self[:show_qr_code] = !(setting?(Bool, :hide_qr_code) || false)

self[:sensor_mac] = @sensor_mac = setting?(String, :sensor_mac)

# min and max meeting duration
self[:min_duration] = setting?(Int32, :min_duration) || 15
self[:max_duration] = setting?(Int32, :max_duration) || 480
end

# This is how we check the rooms status
Expand Down

0 comments on commit 164e7ee

Please sign in to comment.