Skip to content

Commit 02592b0

Browse files
committed
Update sharing schedule
1 parent 7a5d1da commit 02592b0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/Console/Kernel.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ protected function schedule(Schedule $schedule)
2424
$schedule->command('schedule-monitor:clean')->daily();
2525
$schedule->command('horizon:snapshot')->everyFiveMinutes();
2626
$schedule->command('post-article-to-twitter')
27-
->everyMinute()
28-
->when(function () {
29-
// ~2 posts every 24 hours.
30-
return random_int(1, 1440) <= 2;
31-
});
27+
->twiceDaily(14, 18);
3228
}
3329

3430
/**

0 commit comments

Comments
 (0)