Removed duplicate seat call

This commit is contained in:
snipe 2020-07-09 20:26:02 -07:00
parent e2570ada6f
commit 89d433b41a
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -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;