mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 13:14:05 +00:00
add purge call
This commit is contained in:
parent
5f51b1bcc0
commit
fcf07e99db
1 changed files with 1 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ class CreateTenantConnection
|
||||||
/** @var TenantWithDatabase $tenant */
|
/** @var TenantWithDatabase $tenant */
|
||||||
$tenant = $event->tenancy->tenant;
|
$tenant = $event->tenancy->tenant;
|
||||||
|
|
||||||
|
$this->database->purgeTenantConnection();
|
||||||
$this->database->createTenantConnection($tenant);
|
$this->database->createTenantConnection($tenant);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue