1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 22:54:03 +00:00

Add and test DeleteAllTenantMappings, use the listener on TenantDeleted in TSP stub by default

This commit is contained in:
lukinovec 2025-11-04 16:52:39 +01:00
parent de6249216a
commit 41c18cfe14
3 changed files with 116 additions and 10 deletions

View file

@ -78,6 +78,7 @@ class TenancyServiceProvider extends ServiceProvider
Events\TenantDeleted::class => [
JobPipeline::make([
Jobs\DeleteDatabase::class,
ResourceSyncing\Listeners\DeleteAllTenantMappings::class,
])->send(function (Events\TenantDeleted $event) {
return $event->tenant;
})->shouldBeQueued(false),