check time
This commit is contained in:
@@ -50,7 +50,7 @@ class Api::OrdersController < Api::ApiController
|
||||
Rails.logger.debug "Order Source - " + params[:order_source].to_s
|
||||
Rails.logger.debug "Table ID - " + params[:table_id].to_s
|
||||
|
||||
# if checkin_checkout_time(params[:booking_id])
|
||||
if checkin_checkout_time(params[:booking_id])
|
||||
#for extratime
|
||||
is_extra_time = false
|
||||
extra_time = ''
|
||||
@@ -133,9 +133,9 @@ class Api::OrdersController < Api::ApiController
|
||||
# @status, @booking = @order.generate
|
||||
# remoteIP = request.remote_ip
|
||||
# end while request.remote_ip != remoteIP
|
||||
# else
|
||||
# return return_json_status_with_code(406, "Checkout time is over!")
|
||||
# end
|
||||
else
|
||||
return return_json_status_with_code(406, "Checkout time is over!")
|
||||
end
|
||||
end
|
||||
|
||||
# render json for http status code
|
||||
|
||||
Reference in New Issue
Block a user