Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into sqa-1804-001
This commit is contained in:
@@ -8,7 +8,7 @@ class ActionController::Base
|
||||
from = request.subdomain.downcase + "." + request.domain.downcase
|
||||
@license = cache_license(ENV["SX_PROVISION_URL"], from) # request.subdomain.downcase
|
||||
if (!@license.nil?)
|
||||
logger.info "Location - " + @license.dbhost
|
||||
logger.info "Location - " + @license.dbschema
|
||||
ActiveRecord::Base.establish_connection(website_connection(@license))
|
||||
# authenticate_session_token
|
||||
# logger.info "Connecting to - " + @license.subdomain + " - "+ @license.dbhost + "@" + @license.dbschema
|
||||
@@ -97,7 +97,7 @@ class ActionController::API
|
||||
from = request.subdomain.downcase + "." + request.domain.downcase
|
||||
@license = cache_license(ENV["SX_PROVISION_URL"], from) # request.subdomain.downcase
|
||||
if (!@license.nil?)
|
||||
# logger.info "Location - " + @license.dbhost
|
||||
logger.info "Location - " + @license.dbschema
|
||||
ActiveRecord::Base.establish_connection(website_connection(@license))
|
||||
# authenticate_session_token
|
||||
# logger.info "Connecting to - " + @license.subdomain + " - "+ @license.dbhost + "@" + @license.dbschema
|
||||
|
||||
@@ -14,14 +14,14 @@ every 1.minutes do
|
||||
runner "DiningFacility.checkin_time"
|
||||
end
|
||||
|
||||
every 3.minutes do
|
||||
every 10.minutes do
|
||||
runner "OrderReservation.check_new_order"
|
||||
end
|
||||
|
||||
every 5.minutes do
|
||||
every 10.minutes do
|
||||
runner "OrderReservation.check_order_send_to_kitchen"
|
||||
end
|
||||
|
||||
every 5.minutes do
|
||||
every 10.minutes do
|
||||
runner "OrderReservation.check_order_ready_to_delivery"
|
||||
end
|
||||
Reference in New Issue
Block a user