khanegi setting and prices records
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\LivePriceTickService;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class PriceTickCommand extends Command
|
||||
{
|
||||
protected $signature = 'prices:tick';
|
||||
|
||||
protected $description = 'Fetch live prices, sync products, cache last/list, log snapshot (every 10s)';
|
||||
|
||||
public function handle(LivePriceTickService $tickService): int
|
||||
{
|
||||
$tickService->tick();
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user