mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 19:14:03 +00:00
CachedTenantResolver missing cache case crash fix.
This commit is contained in:
parent
1db2f0913f
commit
8d06952324
1 changed files with 2 additions and 3 deletions
|
|
@ -27,9 +27,8 @@ abstract class CachedTenantResolver implements TenantResolver
|
||||||
|
|
||||||
$key = $this->getCacheKey(...$args);
|
$key = $this->getCacheKey(...$args);
|
||||||
|
|
||||||
if ($this->cache->has($key)) {
|
$tenant = $this->cache->has($key) ? $this->cache->get($key) : null;
|
||||||
$tenant = $this->cache->get($key);
|
if ($tenant) {
|
||||||
|
|
||||||
$this->resolved($tenant, ...$args);
|
$this->resolved($tenant, ...$args);
|
||||||
|
|
||||||
return $tenant;
|
return $tenant;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue