Revert "fixes"

This reverts commit 174a232421.
This commit is contained in:
Dev Team
2025-06-02 17:21:41 +06:30
parent 174a232421
commit 555de796c4
10 changed files with 176 additions and 72 deletions

View File

@@ -13,11 +13,11 @@ module MultiTenancy
end
def find_tenant_by_subdomain_or_name
# if request.subdomains.first && request.subdomains.first != "www"
# set_current_tenant(Shop.find_by(subdomain: request.subdomains.first))
# elsif Shop.count == 1
set_current_tenant(Shop.last)
# end
if request.subdomains.first && request.subdomains.first != "www"
set_current_tenant(Shop.find_by(subdomain: request.subdomains.first))
elsif Shop.count == 1
set_current_tenant(Shop.first)
end
end
def not_found