mirror of
https://github.com/vercel/commerce.git
synced 2025-07-28 20:51:23 +00:00
Rename fetch
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user