Updated type

This commit is contained in:
Luis Alvarez 2021-02-15 10:41:57 -05:00
parent c621874250
commit 499516e967

View File

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