Rename fetch

This commit is contained in:
goncy
2021-08-26 14:59:21 -03:00
parent 9e14314d22
commit 017380515c
9 changed files with 30 additions and 30 deletions

View File

@@ -17,10 +17,10 @@ export default function getAllProductPathsOperation({
config?: Partial<OrdercloudConfig>
} = {}): Promise<T['data']> {
// Get fetch from the config
const { storeRestFetch } = commerce.getConfig(config)
const { restFetch } = commerce.getConfig(config)
// Get all products
const rawProducts: RawProduct[] = await storeRestFetch<{
const rawProducts: RawProduct[] = await restFetch<{
Items: RawProduct[]
}>('GET', '/me/products').then((response) => response.Items)