mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 09:54:05 +00:00
wip
This commit is contained in:
parent
0d641784ff
commit
6467dfe818
1 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,8 @@ class DatabaseStorageDriver implements StorageDriver, CanDeleteKeys, CanFindByAn
|
||||||
public function findById(string $id): Tenant
|
public function findById(string $id): Tenant
|
||||||
{
|
{
|
||||||
$dataQuery = function () use ($id) {
|
$dataQuery = function () use ($id) {
|
||||||
return $this->tenants->decodeData($this->tenants->find($id));
|
$data = $this->tenants->find($id);
|
||||||
|
return $data ? $this->tenants->decodeData($data) : null;
|
||||||
};
|
};
|
||||||
$domainsQuery = function () use ($id) {
|
$domainsQuery = function () use ($id) {
|
||||||
return $this->domains->getTenantDomains($id);
|
return $this->domains->getTenantDomains($id);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue