Use supplier.uuid for geo query instead of teamUuid
All checks were successful
Build Docker Image / build (push) Successful in 4m12s

This commit is contained in:
Ruslan Bakiev
2026-01-16 10:52:01 +07:00
parent 273990899f
commit e869c2065f

View File

@@ -240,7 +240,8 @@ try {
// Get hubs where this supplier can deliver this product // Get hubs where this supplier can deliver this product
if (supplier.value && product.value) { if (supplier.value && product.value) {
const supplierUuidForGeo = supplier.value?.teamUuid || supplier.value?.uuid || supplierId.value // Use supplier.uuid (public) for geo query, not teamUuid (internal)
const supplierUuidForGeo = supplier.value?.uuid || supplierId.value
const { data: hubsData } = await useServerQuery( const { data: hubsData } = await useServerQuery(
'supplier-product-hubs', 'supplier-product-hubs',
FindSupplierProductHubsDocument, FindSupplierProductHubsDocument,