diff --git a/app/Jobs/PurgeDeletedAccounts.php b/app/Jobs/PurgeDeletedAccounts.php index e3e102204..0fe25f316 100644 --- a/app/Jobs/PurgeDeletedAccounts.php +++ b/app/Jobs/PurgeDeletedAccounts.php @@ -32,7 +32,7 @@ class PurgeDeletedAccounts implements ShouldQueue { // Find users that were soft-deleted 6 months ago User::onlyTrashed() - ->where('deleted_at', '<', now()->subMonths(6)) + ->where('deleted_at', '<', now()->subDays(config('nntmux.purge_inactive_users_days'))) ->get() ->each(function ($user) { $user->forceDelete(); // Permanently delete the user diff --git a/routes/console.php b/routes/console.php index 3b5855f4e..af86b1c3f 100644 --- a/routes/console.php +++ b/routes/console.php @@ -1,5 +1,6 @@ hourly(); Schedule::command('nntmux:populate-steam-apps')->monthly(); if (config('nntmux.purge_inactive_users') === true) { Schedule::job(new RemoveInactiveAccounts)->daily(); + Schedule::job(new PurgeDeletedAccounts)->daily(); }