change booking_id

This commit is contained in:
phyusin
2018-02-02 13:42:37 +06:30
parent f608aa8516
commit 2821f4bb1c

View File

@@ -184,9 +184,9 @@ class Api::OrdersController < Api::ApiController
#checked checkin and checkout time
def checkin_checkout_time(booking_id)
status = true
if !params[:booking_id].nil?
if !booking_id.nil?
today = Time.now.utc
booking = Booking.find(params[:booking_id])
booking = Booking.find(booking_id)
if !booking.nil?
if !booking.checkout_at.nil?
checkout_time = booking.checkout_at.utc