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:
parent
99357d94df
commit
3c183e45d9
2 changed files with 21 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue