Merge pull request #12905 from marcusmoore/fixes/checkout-via-artisan

Fixes where clause operator in artisan checkout command
This commit is contained in:
snipe 2023-04-25 22:21:59 -07:00 committed by GitHub
commit 17275cbeb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ class CheckoutLicenseToAllUsers extends Command
return false;
}
$users = User::whereNull('deleted_at')->where('autoassign_licenses', '==', 1)->with('licenses')->get();
$users = User::whereNull('deleted_at')->where('autoassign_licenses', '=', 1)->with('licenses')->get();
if ($users->count() > $license->getAvailSeatsCountAttribute()) {
$this->info('You do not have enough free seats to complete this task, so we will check out as many as we can. ');