1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 07:54:03 +00:00

Add the jobs to the TenancyServiceProvider stub

This commit is contained in:
lukinovec 2023-02-13 15:31:26 +01:00
parent e6a0717c84
commit b62d4f0c1d

View file

@ -30,6 +30,7 @@ class TenancyServiceProvider extends ServiceProvider
// Jobs\SeedDatabase::class, // Jobs\SeedDatabase::class,
// Jobs\CreateStorageSymlinks::class, // Jobs\CreateStorageSymlinks::class,
// Jobs\CreatePostgresRoleForTenant::class,
// Your own jobs to prepare the tenant. // Your own jobs to prepare the tenant.
// Provision API keys, create S3 buckets, anything you want! // Provision API keys, create S3 buckets, anything you want!
@ -55,6 +56,7 @@ class TenancyServiceProvider extends ServiceProvider
Events\TenantDeleted::class => [ Events\TenantDeleted::class => [
JobPipeline::make([ JobPipeline::make([
Jobs\DeleteDatabase::class, Jobs\DeleteDatabase::class,
// Jobs\DeleteTenantsPostgresRole::class,
// Jobs\RemoveStorageSymlinks::class, // Jobs\RemoveStorageSymlinks::class,
])->send(function (Events\TenantDeleted $event) { ])->send(function (Events\TenantDeleted $event) {
return $event->tenant; return $event->tenant;