diff --git a/app/Console/Commands/CheckoutLicenseToAllUsers.php b/app/Console/Commands/CheckoutLicenseToAllUsers.php index f87a9cfa2875..bf8941233b97 100644 --- a/app/Console/Commands/CheckoutLicenseToAllUsers.php +++ b/app/Console/Commands/CheckoutLicenseToAllUsers.php @@ -75,11 +75,8 @@ public function handle() } // Get the seat ID - $next = $license->freeSeat(); - if (!$licenseSeat = LicenseSeat::where('id', '=', $next->id)->first()) { - $this->error('ERROR: No available seats'); - return false; - } + $licenseSeat = $license->freeSeat(); + // Update the seat with checkout info, $licenseSeat->assigned_to = $user->id;