From 9b7c98e141fff23e08d83631359ed029b7be0233 Mon Sep 17 00:00:00 2001 From: Charles T Date: Mon, 2 Oct 2023 21:33:44 +0800 Subject: [PATCH] Add (ai gen): auto-select categories --- app/Jobs/Tasks/GenerateShopeeAIArticleTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Tasks/GenerateShopeeAIArticleTask.php b/app/Jobs/Tasks/GenerateShopeeAIArticleTask.php index 946dfec..240678d 100644 --- a/app/Jobs/Tasks/GenerateShopeeAIArticleTask.php +++ b/app/Jobs/Tasks/GenerateShopeeAIArticleTask.php @@ -86,7 +86,7 @@ public static function handle(ShopeeSellerScrape $shopee_seller_scrape) $ai_writeup = new AiWriteup; $ai_writeup->source = 'shopee'; $ai_writeup->source_url = $shopee_task->product_task->response->url; - $ai_writeup->category_id = $picked_category->category->id; + $ai_writeup->category_id = $picked_category->id; $ai_writeup->title = $ai_output->title; $ai_writeup->excerpt = $ai_output->excerpt; $ai_writeup->featured_image = '';