mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:34:04 +00:00
Session scoping & tenant() cleanup
This commit is contained in:
parent
c8f9a82745
commit
05d6383b99
6 changed files with 125 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ class QueueTenancyBootstrapper implements TenancyBootstrapper
|
|||
}
|
||||
|
||||
// Tenancy is already initialized for the tenant (e.g. dispatchNow was used)
|
||||
if (tenancy()->initialized && tenant('id') === $tenantId) {
|
||||
if (tenancy()->initialized && tenant()->getTenantKey() === $tenantId) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ class QueueTenancyBootstrapper implements TenancyBootstrapper
|
|||
return [];
|
||||
}
|
||||
|
||||
$id = tenant('id');
|
||||
$id = tenant()->getTenantKey();
|
||||
|
||||
return [
|
||||
'tenant_id' => $id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue