mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
Update get-all-products.ts
This commit is contained in:
@@ -35,13 +35,9 @@ const getAllProducts = async (options: {
|
||||
}),
|
||||
}
|
||||
)
|
||||
products = [
|
||||
...products,
|
||||
...data.products.edges.map(({ node: p }) => normalizeProduct(p)),
|
||||
]
|
||||
|
||||
return {
|
||||
products,
|
||||
products: data.products.edges.map(({ node: p }) => normalizeProduct(p)),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user