change future checkin time flow

This commit is contained in:
phyusin
2018-11-28 10:54:37 +06:30
parent f5ba08ae25
commit b750547066
6 changed files with 160 additions and 124 deletions

View File

@@ -62,7 +62,7 @@ class Api::CheckInProcessController < Api::ApiController
def check_in_process
if params[:dining_id]
dining_facility = DiningFacility.find(params[:dining_id])
if dining_facility.status == "available"
if dining_facility.is_active && dining_facility.status == "available"
if params[:checkin_time]
checkin_at = nil
if !params[:checkin_time].empty?