Fix fortnightly email scheduling

This commit is contained in:
Ben Goldsworthy 2023-01-10 19:59:52 +00:00
parent 802c9398d5
commit 87a0d95435

View file

@ -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");
});