From fcfd3202158fc48ae9498ebe7f18f9d94cce2ffe Mon Sep 17 00:00:00 2001 From: Charles T Date: Sun, 1 Oct 2023 04:29:03 +0800 Subject: [PATCH] Add (ai gen) --- app/Jobs/Tasks/ShopeeSellerTopProductScraperTask.php | 1 + app/Models/ShopeeSellerScrape.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/Jobs/Tasks/ShopeeSellerTopProductScraperTask.php b/app/Jobs/Tasks/ShopeeSellerTopProductScraperTask.php index 5f2a071..deb9b39 100644 --- a/app/Jobs/Tasks/ShopeeSellerTopProductScraperTask.php +++ b/app/Jobs/Tasks/ShopeeSellerTopProductScraperTask.php @@ -77,6 +77,7 @@ public static function handle(string $seller, string $country_iso, Category $cat $shopee_seller_scrape->epoch = $epoch; $shopee_seller_scrape->filename = $filename; $shopee_seller_scrape->category_id = $category->id; + $shopee_seller_scrape->last_ai_written_at = now(); if ($shopee_seller_scrape->save()) { return (object) compact('seller_shop_task', 'product_task', 'shopee_seller_scrape'); diff --git a/app/Models/ShopeeSellerScrape.php b/app/Models/ShopeeSellerScrape.php index 16555dd..6c72973 100644 --- a/app/Models/ShopeeSellerScrape.php +++ b/app/Models/ShopeeSellerScrape.php @@ -31,6 +31,7 @@ class ShopeeSellerScrape extends Model protected $casts = [ 'category_id' => 'int', 'epoch' => 'int', + 'last_ai_written_at' => 'datetime', ]; protected $fillable = [ @@ -39,6 +40,7 @@ class ShopeeSellerScrape extends Model 'country_iso', 'epoch', 'filename', + 'last_ai_written_at', ]; public function category()