mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:54: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);
|
||||
|
||||
if ($this->cache->has($key)) {
|
||||
$tenant = $this->cache->get($key);
|
||||
|
||||
$tenant = $this->cache->has($key) ? $this->cache->get($key) : null;
|
||||
if ($tenant) {
|
||||
$this->resolved($tenant, ...$args);
|
||||
|
||||
return $tenant;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue