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