checkin get method update

This commit is contained in:
Yan
2017-12-05 18:10:01 +06:30
parent 5e8f94fa13
commit 2cd86890fa
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ class Api::CheckInProcessController < Api::ApiController
def check_in_time
if params[:dining_id]
dining_facility = DiningFacility.find(params[:dining_id])
booking = dining_facility.get_booking
booking = dining_facility.get_current_checkout_booking
if !booking.nil?
check_in_time = booking.checkin_at.utc.getlocal.strftime("%Y-%m-%d %H:%M")
check_out_time = booking.checkout_at.utc.getlocal.strftime("%Y-%m-%d %H:%M")