mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:24:04 +00:00
Correct job dispatching in tenants:create-postgres-user
This commit is contained in:
parent
64d1333d37
commit
2fc14837ab
1 changed files with 3 additions and 3 deletions
|
|
@ -16,9 +16,9 @@ class CreatePostgresUserForTenants extends Command
|
||||||
|
|
||||||
public function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
tenancy()->runForMultiple($this->getTenants(), function ($tenant) {
|
foreach ($this->getTenants() as $tenant) {
|
||||||
CreatePostgresUserForTenant::dispatch();
|
CreatePostgresUserForTenant::dispatch($tenant);
|
||||||
});
|
}
|
||||||
|
|
||||||
return Command::SUCCESS;
|
return Command::SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue