Update AISerpGenArticleJob.php
This commit is contained in:
@@ -30,7 +30,7 @@ public function __construct()
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
$category = Category::orderByRaw('ISNULL(serp_at) DESC')
|
||||
$category = Category::orderByRaw('CASE WHEN serp_at IS NULL THEN 1 ELSE 0 END DESC')
|
||||
->orderBy('serp_at', 'asc')
|
||||
->first();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user