mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 13:34:05 +00:00
Move tenant storage deletion to the DeletingTenant event
This commit is contained in:
parent
1b31bdb56b
commit
608c28cf33
3 changed files with 7 additions and 6 deletions
|
|
@ -46,6 +46,8 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
])->send(function (Events\DeletingTenant $event) {
|
||||
return $event->tenant;
|
||||
})->shouldBeQueued(false),
|
||||
|
||||
// Listeners\DeleteTenantStorage::class,
|
||||
],
|
||||
Events\TenantDeleted::class => [
|
||||
JobPipeline::make([
|
||||
|
|
@ -53,7 +55,6 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
])->send(function (Events\TenantDeleted $event) {
|
||||
return $event->tenant;
|
||||
})->shouldBeQueued(false), // `false` by default, but you probably want to make this `true` for production.
|
||||
// Listeners\DeleteTenantStorage::class,
|
||||
],
|
||||
|
||||
// Domain events
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue