check min for api checkin process

This commit is contained in:
phyusin
2017-12-08 16:09:37 +06:30
parent fefa8da5d6
commit 2415adff98

View File

@@ -85,7 +85,7 @@ class DiningFacility < ApplicationRecord
checkout_at = booking.checkout_at.utc
checkout_at_hr = (checkout_at.utc.strftime("%H").to_i).to_int
checkout_at_min = (checkout_at.utc.strftime("%M").to_i).to_int
# checkout_at_min -= min
checkout_at_min -= min
if (checkout_at_hr <= hr) && (checkout_at_min <= 15)
return booking
else