Update get-all-products.ts

This commit is contained in:
cond0r 2021-05-24 20:04:50 +03:00
parent 098605712e
commit 992612ef7f

View File

@ -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)),
}
}