1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:24:03 +00:00

Cache crash fix (#1048)

This commit is contained in:
lukinovec 2023-01-27 08:17:14 +01:00 committed by GitHub
parent 84a3287799
commit 26b8569761
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;