From 63fa6aa6c0803aecc56026f2a27b3aed070227d8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 27 Dec 2019 11:05:27 +0100 Subject: [PATCH] Update cron --- app/Console/Kernel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 85e870bd24..be5a881b9d 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -54,7 +54,7 @@ class Kernel extends ConsoleKernel protected function schedule(Schedule $schedule): void { $schedule->call( - function () { + static function () { Log::error( 'Firefly III no longer users the Laravel scheduler to do cron jobs! Please read the instructions at https://firefly-iii.readthedocs.io/en/latest/' ); @@ -70,6 +70,6 @@ class Kernel extends ConsoleKernel echo '------------'; echo "\n"; } - )->everyMinute(); + )->daily(); } }