1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:24:02 +00:00

Some fixes

This commit is contained in:
Carlos Lizaola 2019-07-09 20:09:40 -07:00
parent a7a019b148
commit 2bd9fdaf7f

View file

@ -93,8 +93,8 @@ class TenantManager
throw new \Exception("Domain $domain does not exists.");
}
if ($aliasUuid = $this->storage->getTenantIdByDomain($alias)) {
throw new \Exception("Domain Alias $domain is already occupied in use.");
if ($this->storage->getTenantIdByDomain($alias)) {
throw new \Exception("Domain Alias $alias is already occupied.");
}
$tenant = $this->jsonDecodeArrayValues($this->storage->aliasTenant($alias, $uuid));