Skip to content

Commit

Permalink
Removed duplicate seat call
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jul 10, 2020
1 parent e2570ad commit 89d433b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/Console/Commands/CheckoutLicenseToAllUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 89d433b

Please sign in to comment.