mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
Update get-all-products.ts
This commit is contained in:
parent
098605712e
commit
992612ef7f
@ -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)),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user