1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 21:34:04 +00:00

fix #1277: consume PendingDispatch return values in Tenancy::run()

This commit is contained in:
Samuel Štancl 2025-01-04 15:57:01 +01:00
parent 99357d94df
commit 3c183e45d9
2 changed files with 21 additions and 3 deletions

View file

@ -80,6 +80,10 @@ class Tenancy
$this->initialize($tenant);
$result = $callback($tenant);
if ($result instanceof \Illuminate\Foundation\Bus\PendingDispatch) { // #1277
$result = null;
}
if ($originalTenant) {
$this->initialize($originalTenant);
} else {