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

@@ -23,10 +23,10 @@ export default function getSiteInfoOperation({
preview?: boolean
} = {}): Promise<T['data']> {
// Get fetch from the config
const { storeRestFetch } = commerce.getConfig(config)
const { restFetch } = commerce.getConfig(config)
// Get list of categories
const rawCategories: RawCategory[] = await storeRestFetch<{
const rawCategories: RawCategory[] = await restFetch<{
Items: RawCategory[]
}>('GET', `/me/categories`).then((response) => response.Items)