added wss tools 3

This commit is contained in:
2026-06-18 15:25:49 +03:30
parent 30b0e480c3
commit 2a77c24dcc
3 changed files with 37 additions and 27 deletions
@@ -22,6 +22,7 @@ use Illuminate\Support\Facades\Mail;
use Morilog\Jalali\Jalalian;
use App\Services\ConfigService;
use App\Services\LivePriceCacheService;
use App\Services\PriceBroadcastService;
use App\Services\ProductDisplayPriceService;
@@ -132,7 +133,10 @@ class ReportController extends Controller
$cache = app(LivePriceCacheService::class);
$cache->markTick();
return $cache->put($payload);
$result = $cache->put($payload);
app(PriceBroadcastService::class)->broadcastAfterPriceUpdate($result, true);
return $result;
}
return $payload;