update zone json

This commit is contained in:
Aung Myo
2018-07-01 15:54:44 +06:30
parent 0897068e5b
commit 985604cd1f
4 changed files with 6 additions and 15 deletions

View File

@@ -179,14 +179,5 @@ class DiningFacility < ApplicationRecord
end
end
end
def get_current_booking_status
booking = Booking.where("dining_facility_id = #{self.id} and booking_status ='assign' and checkin_at between '#{DateTime.now.utc - 5.hours}' and '#{DateTime.now.utc}'").limit(1) #and checkout_at is null
if booking.count > 0 then
return booking[0]
else
return nil
end
end
end