Update catalog pages to use new geo queries
Some checks failed
Build Docker Image / build (push) Failing after 1m35s
Some checks failed
Build Docker Image / build (push) Failing after 1m35s
- Replace FindProductRoutesDocument with GetOffersToHubDocument - Replace FindSupplierProductHubsDocument with GetOffersBySupplierProductDocument + GetHubsNearOfferDocument - Update all catalog pages to use new query naming convention - Add new GraphQL operation files, remove deprecated ones
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { GetAvailableProductsDocument } from '~/composables/graphql/public/exchange-generated'
|
||||
import { GetProductsDocument } from '~/composables/graphql/public/geo-generated'
|
||||
|
||||
// Shared state
|
||||
const items = ref<any[]>([])
|
||||
@@ -13,12 +13,12 @@ export function useCatalogProducts() {
|
||||
isLoading.value = true
|
||||
try {
|
||||
const data = await execute(
|
||||
GetAvailableProductsDocument,
|
||||
GetProductsDocument,
|
||||
{},
|
||||
'public',
|
||||
'exchange'
|
||||
'geo'
|
||||
)
|
||||
items.value = data?.getAvailableProducts || []
|
||||
items.value = data?.products || []
|
||||
isInitialized.value = true
|
||||
} finally {
|
||||
isLoading.value = false
|
||||
|
||||
Reference in New Issue
Block a user