mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 17:54:03 +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
|
||||
{
|
||||
tenancy()->runForMultiple($this->getTenants(), function ($tenant) {
|
||||
CreatePostgresUserForTenant::dispatch();
|
||||
});
|
||||
foreach ($this->getTenants() as $tenant) {
|
||||
CreatePostgresUserForTenant::dispatch($tenant);
|
||||
}
|
||||
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue