added ons

This commit is contained in:
2026-07-12 20:58:34 +03:30
parent 555f09b9c7
commit 300c909b9e
6 changed files with 85 additions and 25 deletions
@@ -7,6 +7,7 @@ use App\Services\AssetSummaryService;
use App\Services\LivePriceCacheService;
use App\Services\PriceBroadcastService;
use App\Services\PriceStreamService;
use App\Services\ZaarboxPriceService;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\StreamedResponse;
@@ -47,7 +48,7 @@ class PriceStreamController extends Controller
$cache = app(LivePriceCacheService::class);
$last = $cache->get() ?? $cache->buildFromDatabase();
if (is_array($last) && $last !== []) {
$send('last', $last);
$send('last', app(ZaarboxPriceService::class)->attachGoldOunceToPayload($last));
}
$list = app(PriceBroadcastService::class)->buildListPayload(false);