mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
Removed duplicate seat call
This commit is contained in:
parent
e2570ada6f
commit
89d433b41a
|
@ -75,11 +75,8 @@ class CheckoutLicenseToAllUsers extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the seat ID
|
// Get the seat ID
|
||||||
$next = $license->freeSeat();
|
$licenseSeat = $license->freeSeat();
|
||||||
if (!$licenseSeat = LicenseSeat::where('id', '=', $next->id)->first()) {
|
|
||||||
$this->error('ERROR: No available seats');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update the seat with checkout info,
|
// Update the seat with checkout info,
|
||||||
$licenseSeat->assigned_to = $user->id;
|
$licenseSeat->assigned_to = $user->id;
|
||||||
|
|
Loading…
Reference in a new issue