Fix fortnightly email scheduling
This commit is contained in:
parent
802c9398d5
commit
87a0d95435
1 changed files with 1 additions and 4 deletions
|
@ -29,10 +29,7 @@ class Kernel extends ConsoleKernel
|
||||||
});
|
});
|
||||||
|
|
||||||
$schedule->command('digest:send --fortnightly')
|
$schedule->command('digest:send --fortnightly')
|
||||||
->weeklyOn(5, '00:01')
|
->twiceMonthly(1,16,'13:00')
|
||||||
->when(function () {
|
|
||||||
return (time() / 604800 % 2);
|
|
||||||
})
|
|
||||||
->onFailure(function () {
|
->onFailure(function () {
|
||||||
Log::error("Fortnightly email digest send failed");
|
Log::error("Fortnightly email digest send failed");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue