From 87a0d95435e9662354645b7f6c0dff704e6055a3 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Tue, 10 Jan 2023 19:59:52 +0000 Subject: [PATCH] Fix fortnightly email scheduling --- app/Console/Kernel.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 9e0881a..c85c071 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -29,10 +29,7 @@ class Kernel extends ConsoleKernel }); $schedule->command('digest:send --fortnightly') - ->weeklyOn(5, '00:01') - ->when(function () { - return (time() / 604800 % 2); - }) + ->twiceMonthly(1,16,'13:00') ->onFailure(function () { Log::error("Fortnightly email digest send failed"); });