Add option to disable purging of inactive user accounts

This commit is contained in:
DariusIII
2019-04-28 21:59:09 +02:00
parent fdb0aa4a53
commit 189bda93bd
4 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ class Kernel extends ConsoleKernel
$schedule->exec('php '.base_path().'/misc/testing/DB/checkUsers.php')->twiceDaily(1, 13);
$schedule->command('telescope:prune')->daily();
$schedule->command('horizon:snapshot')->everyFiveMinutes();
$schedule->job(new RemoveInactiveAccounts())->daily();
if (config('nntmux.purge_inactive_users') === true) {
$schedule->job(new RemoveInactiveAccounts())->daily();
}
}
/**