Files
boursecu_server/app/Console/Commands/SyncProductPrices.php
T
2026-06-10 18:38:01 +03:30

22 lines
530 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\ProductPriceSyncService;
use Illuminate\Console\Command;
class SyncProductPrices extends Command
{
protected $signature = 'product:sync-prices';
protected $description = 'Sync variable product prices from external feeds (every ~30s via scheduler)';
public function handle(ProductPriceSyncService $syncService): int
{
// کران: همیشه فید تازه از zaarbox
$syncService->syncAll(true);
return self::SUCCESS;
}
}