added some keys into setting

This commit is contained in:
2026-07-07 14:34:00 +03:30
parent 20a884a874
commit d2843d79a0
5 changed files with 488 additions and 3 deletions
+6 -1
View File
@@ -86,7 +86,12 @@ class LivePriceTickService
app(LivePriceCacheService::class)->markTick();
// last از put داخل lastPrice؛ list بعد از sync محصولات
app(PriceBroadcastService::class)->broadcastListIfChanged();
$listChanged = app(PriceBroadcastService::class)->broadcastListIfChanged();
// بعد از هر تغییر قیمت، قیمت‌ها را به کانال‌های پیام‌رسان بفرست (با cooldown داخلی)
if ($listChanged) {
app(PriceChannelBroadcastService::class)->broadcastIfEligible();
}
} finally {
$lock->release();
}