From b73d047a39296c30810a8c7f47ebb2730e7625f4 Mon Sep 17 00:00:00 2001 From: "j.stein" Date: Sat, 12 Feb 2022 13:26:14 +0100 Subject: [PATCH] Update CreatePendingTenants.php --- src/Commands/CreatePendingTenants.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/CreatePendingTenants.php b/src/Commands/CreatePendingTenants.php index a248860e..76c461b1 100644 --- a/src/Commands/CreatePendingTenants.php +++ b/src/Commands/CreatePendingTenants.php @@ -13,7 +13,7 @@ class CreatePendingTenants extends Command * * @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. @@ -29,9 +29,9 @@ class CreatePendingTenants extends Command */ 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();