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

Cache crash fix

This commit is contained in:
lukinovec 2023-01-19 22:44:00 +01:00
parent 84a3287799
commit ae3eff5384

View file

@ -36,9 +36,7 @@ abstract class CachedTenantResolver implements TenantResolver
$key = $this->getCacheKey(...$args); $key = $this->getCacheKey(...$args);
if ($this->cache->has($key)) { if ($tenant = $this->cache->get($key)) {
$tenant = $this->cache->get($key);
$this->resolved($tenant, ...$args); $this->resolved($tenant, ...$args);
return $tenant; return $tenant;