From 5bfe9ef31e4905fc5eb0630780947fbc0f26667a Mon Sep 17 00:00:00 2001 From: phyusin Date: Fri, 8 Dec 2017 14:39:14 +0630 Subject: [PATCH] change checkin api --- app/controllers/api/check_in_process_controller.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/controllers/api/check_in_process_controller.rb b/app/controllers/api/check_in_process_controller.rb index 0fc5006a..cfce827f 100644 --- a/app/controllers/api/check_in_process_controller.rb +++ b/app/controllers/api/check_in_process_controller.rb @@ -9,14 +9,7 @@ class Api::CheckInProcessController < Api::ApiController check_out_time = booking.checkout_at.utc.getlocal.strftime("%Y-%m-%d %H:%M") render :json => { :status => true, :check_in_time => check_in_time, :check_out_time => check_out_time } else - sale_booking = dining_facility.get_current_checkout_booking - if !sale_booking.nil? - check_in_time = sale_booking.checkin_at.utc.getlocal.strftime("%Y-%m-%d %H:%M") - check_out_time = sale_booking.checkout_at.utc.getlocal.strftime("%Y-%m-%d %H:%M") - render :json => { :status => true, :check_in_time => check_in_time, :check_out_time => check_out_time } - else - render :json => { :status => false, :error_message => "No current booking!" } - end + render :json => { :status => false, :error_message => "No current booking!" } end end end