1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:34:04 +00:00

Correct job dispatching in tenants:create-postgres-user

This commit is contained in:
lukinovec 2023-04-21 14:41:23 +02:00
parent 64d1333d37
commit 2fc14837ab

View file

@ -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;
} }