mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
Updated type
This commit is contained in:
parent
c621874250
commit
499516e967
@ -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
|
||||
}, {})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user