This commit is contained in:
snipe 2016-06-09 12:25:51 -07:00
parent a04d6293d1
commit bbb116f29c

View file

@ -140,7 +140,7 @@ class Purge extends Command
$supplier->forceDelete(); $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.'); $this->info($users->count().' users purged.');
$user_assoc = 0; $user_assoc = 0;
foreach ($users as $user) { foreach ($users as $user) {