Remove domain_count
Not needed only request domain_uuid if value is null
This commit is contained in:
parent
122a8c1e03
commit
0a2798575c
|
|
@ -130,9 +130,7 @@
|
|||
|
||||
--get the domain_uuid
|
||||
domain_uuid = session:getVariable("domain_uuid");
|
||||
if (domain_count > 1) then
|
||||
if (domain_uuid == nil) then
|
||||
--get the domain_uuid using the domain name required for multi-tenant
|
||||
if (domain_name ~= nil) then
|
||||
local sql = "SELECT domain_uuid FROM v_domains ";
|
||||
sql = sql .. "WHERE domain_name = :domain_name ";
|
||||
|
|
@ -145,7 +143,6 @@
|
|||
end);
|
||||
end
|
||||
end
|
||||
end
|
||||
if (domain_uuid ~= nil) then
|
||||
domain_uuid = string.lower(domain_uuid);
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue