khanegi setting and prices records
This commit is contained in:
@@ -56,4 +56,20 @@ class PriceSyncLogService
|
||||
|
||||
return $log->load('items');
|
||||
}
|
||||
|
||||
/** هر تیک کران — حتی بدون تغییر قیمت محصول */
|
||||
public function recordTick(string $source, ?string $sourceUrl, int $liquidGoldPrice, int $productsSynced): ?PriceSyncLog
|
||||
{
|
||||
if (! $this->isAvailable()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return PriceSyncLog::create([
|
||||
'source' => $source,
|
||||
'source_url' => $sourceUrl,
|
||||
'liquid_gold_price' => $liquidGoldPrice,
|
||||
'products_updated' => $productsSynced,
|
||||
'created_at' => now(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user