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

Update CreatePendingTenants.php

This commit is contained in:
j.stein 2022-02-12 13:26:14 +01:00
parent cd70b57b83
commit b73d047a39

View file

@ -13,7 +13,7 @@ class CreatePendingTenants extends Command
* *
* @var string * @var string
*/ */
protected $signature = 'tenants:pending {--count= The number of tenant to be in a pending state}'; protected $signature = 'tenants:pending {--count= : The number of tenant to be in a pending state}';
/** /**
* The console command description. * The console command description.
@ -29,9 +29,9 @@ class CreatePendingTenants extends Command
*/ */
public function handle() public function handle()
{ {
$this->info('Deploying pendgin tenants.'); $this->info('Deploying pending tenants.');
$pendingObjectifCount = (int)config('tenancy.pending.count'); $pendingObjectifCount = (int) ($this->option('count') ?? config('tenancy.pending.count'));
$pendingCurrentCount = $this->getPendingTenantCount(); $pendingCurrentCount = $this->getPendingTenantCount();