Add (ai gen)
This commit is contained in:
@@ -77,6 +77,7 @@ public static function handle(string $seller, string $country_iso, Category $cat
|
|||||||
$shopee_seller_scrape->epoch = $epoch;
|
$shopee_seller_scrape->epoch = $epoch;
|
||||||
$shopee_seller_scrape->filename = $filename;
|
$shopee_seller_scrape->filename = $filename;
|
||||||
$shopee_seller_scrape->category_id = $category->id;
|
$shopee_seller_scrape->category_id = $category->id;
|
||||||
|
$shopee_seller_scrape->last_ai_written_at = now();
|
||||||
|
|
||||||
if ($shopee_seller_scrape->save()) {
|
if ($shopee_seller_scrape->save()) {
|
||||||
return (object) compact('seller_shop_task', 'product_task', 'shopee_seller_scrape');
|
return (object) compact('seller_shop_task', 'product_task', 'shopee_seller_scrape');
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class ShopeeSellerScrape extends Model
|
|||||||
protected $casts = [
|
protected $casts = [
|
||||||
'category_id' => 'int',
|
'category_id' => 'int',
|
||||||
'epoch' => 'int',
|
'epoch' => 'int',
|
||||||
|
'last_ai_written_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
@@ -39,6 +40,7 @@ class ShopeeSellerScrape extends Model
|
|||||||
'country_iso',
|
'country_iso',
|
||||||
'epoch',
|
'epoch',
|
||||||
'filename',
|
'filename',
|
||||||
|
'last_ai_written_at',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function category()
|
public function category()
|
||||||
|
|||||||
Reference in New Issue
Block a user