diff --git a/app/Console/Commands/Purge.php b/app/Console/Commands/Purge.php index 51c188b7c8..bef0fdf754 100644 --- a/app/Console/Commands/Purge.php +++ b/app/Console/Commands/Purge.php @@ -140,7 +140,7 @@ class Purge extends Command $supplier->forceDelete(); } - $users = User::whereNotNull('deleted_at')->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) {