Update AISerpGenArticleJob.php
This commit is contained in:
@@ -30,8 +30,8 @@ public function __construct()
|
|||||||
*/
|
*/
|
||||||
public function handle(): void
|
public function handle(): void
|
||||||
{
|
{
|
||||||
$category = Category::orderBy('serp_at', 'asc')
|
$category = Category::orderByRaw('ISNULL(serp_at) DESC')
|
||||||
->orWhereNull('serp_at')
|
->orderBy('serp_at', 'asc')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
$news_serp_result = GetNewsSerpTask::handle($category, 'US');
|
$news_serp_result = GetNewsSerpTask::handle($category, 'US');
|
||||||
|
|||||||
Reference in New Issue
Block a user