Skip to content

Commit

Permalink
fix(booking-approval): check for bookings in the next 8 weeks
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Aug 24, 2023
1 parent d8d079a commit 8413969
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/place/booking_approver.cr
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ class Place::BookingApprover < PlaceOS::Driver
bookings = Array(Booking).from_json staff_api.query_bookings(
type: booking_type,
zones: [get_building_id],
approved: false
approved: false,
period_end: 8.weeks.from_now.to_unix
).get.to_json

bookings.each do |booking|
Expand Down

0 comments on commit 8413969

Please sign in to comment.