change query for dashboard

This commit is contained in:
phyusin
2017-12-14 12:02:50 +06:30
parent 00615a4443
commit c86d91054b
4 changed files with 23 additions and 19 deletions

View File

@@ -79,7 +79,6 @@ class DiningFacility < ApplicationRecord
booking = self.get_current_checkout_booking
if booking
now = Time.now.utc
puts now
hr = (now.strftime("%H").to_i).to_int
min = (now.strftime("%M").to_i).to_int
if !booking.checkout_at.nil?