mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
update get product hook
This commit is contained in:
@@ -32,8 +32,8 @@ export const handler: SWRHook<
|
||||
|
||||
const { results, count: found } = await fetch({
|
||||
query: 'products',
|
||||
method: 'get',
|
||||
// variables: { categoryId },
|
||||
method: 'list',
|
||||
variables: { category: categoryId },
|
||||
})
|
||||
|
||||
const products = results.map((product) => normalizeProduct(product))
|
||||
|
Reference in New Issue
Block a user