mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Fixes #2142
This commit is contained in:
parent
a04d6293d1
commit
bbb116f29c
|
@ -140,7 +140,7 @@ class Purge extends Command
|
|||
$supplier->forceDelete();
|
||||
}
|
||||
|
||||
$users = User::whereNotNull('deleted_at')->where('show_in_list','=','0')->withTrashed()->get();
|
||||
$users = User::whereNotNull('deleted_at')->where('show_in_list','!=','0')->withTrashed()->get();
|
||||
$this->info($users->count().' users purged.');
|
||||
$user_assoc = 0;
|
||||
foreach ($users as $user) {
|
||||
|
|
Loading…
Reference in a new issue