mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Updated type
This commit is contained in:
@@ -60,7 +60,7 @@ const getProducts: ProductsHandlers['getProducts'] = async ({
|
||||
const productsById = graphqlData.products.reduce<{
|
||||
[k: number]: Product
|
||||
}>((prods, p) => {
|
||||
prods[p.id] = p
|
||||
prods[Number(p.id)] = p
|
||||
return prods
|
||||
}, {})
|
||||
|
||||
|
Reference in New Issue
Block a user