Skip to content

A free open source IT asset/license management system

Removed duplicate seat call

snipe89d433b41aa0
diff --git a/app/Console/Commands/CheckoutLicenseToAllUsers.php b/app/Console/Commands/CheckoutLicenseToAllUsers.php
index f87a9cfa28..bf8941233b 100644
--- a/app/Console/Commands/CheckoutLicenseToAllUsers.php
+++ b/app/Console/Commands/CheckoutLicenseToAllUsers.php
@@ -75,11 +75,8 @@ class CheckoutLicenseToAllUsers extends Command
}
// 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;