1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 10:54: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
{
tenancy()->runForMultiple($this->getTenants(), function ($tenant) {
CreatePostgresUserForTenant::dispatch();
});
foreach ($this->getTenants() as $tenant) {
CreatePostgresUserForTenant::dispatch($tenant);
}
return Command::SUCCESS;
}