mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Use env() properly throughout panel to avoid cache issues.
This commit is contained in:
@@ -64,7 +64,7 @@ class ClearTasks extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$entries = Models\TaskLog::where('run_time', '<=', Carbon::now()->subHours(env('APP_CLEAR_TASKLOG', 720))->toAtomString())->get();
|
||||
$entries = Models\TaskLog::where('run_time', '<=', Carbon::now()->subHours(config('pterodactyl.tasks.clear_log'))->toAtomString())->get();
|
||||
|
||||
$this->info(sprintf('Preparing to delete %d old task log entries.', count($entries)));
|
||||
$bar = $this->output->createProgressBar(count($entries));
|
||||
|
||||
Reference in New Issue
Block a user