fix kashkool

This commit is contained in:
2026-06-29 22:43:28 +03:30
parent be17631109
commit 8b855e5ee4
150 changed files with 11974 additions and 4445 deletions
+7 -9
View File
@@ -189,16 +189,14 @@ async function runFallbackPoll() {
const { getLastPrices, hasRecentPriceFromSource, markPriceSourceFetchFailed } = await import(
'@/utils/price'
)
const { getProducts } = await import('@/api/products')
const { applyProductsListFromStream: applyList } = await import('@/utils/productStreamBridge')
const [lastResult, products] = await Promise.allSettled([
getLastPrices(),
getProducts(),
])
const { refreshProductsPageData } = await import(
'@/views/base/products/composables/useProductsPageData'
)
if (products.status === 'fulfilled' && Array.isArray(products.value) && products.value.length) {
applyList(products.value)
}
const [lastResult] = await Promise.allSettled([
getLastPrices(),
refreshProductsPageData(),
])
const priceOk =
lastResult.status === 'fulfilled'