Update (front post): Fix parsing issue

This commit is contained in:
2023-10-04 20:19:52 +08:00
parent 1e7b75706e
commit dba3f0f638
8 changed files with 33 additions and 35 deletions

View File

@@ -26,6 +26,7 @@ protected function schedule(Schedule $schedule): void
AISerpGenArticleJob::dispatch()->onQueue('default')->onConnection('default');
})->everyMinute()->when(function () use ($mins_between_posts, $launched_date) {
$minutes_since_launch = now()->diffInMinutes($launched_date);
return $minutes_since_launch % $mins_between_posts === 0;
});