fix skipping domain filter for api shops index

This commit is contained in:
Thein Lin Kyaw
2020-02-13 16:50:10 +06:30
parent bec52b10d5
commit 4b693f165e

View File

@@ -15,7 +15,7 @@ class Api::ShopsController < Api::ApiController
end
def lookup_domain
unless action_name == "index"
if action_name == "index"
if ENV["SERVER_CODE"] == "cloud" && request.subdomains.last && request.subdomains.last != "www"
@license = cache_license(ENV["SX_PROVISION_URL"], request.host) # request.subdomain.downcase
if (!@license.nil?)