remove console log

This commit is contained in:
Dom Sip 2022-04-19 10:30:21 +01:00
parent 8909e94a6a
commit 02b477bdea

View File

@ -26,12 +26,8 @@ const getProducts: ProductsEndpoint['handlers']['getProducts'] = async ({
if (searchResults.total) { if (searchResults.total) {
found = true; found = true;
products = normalizeSearchProducts(searchResults.hits) as any[]; products = normalizeSearchProducts(searchResults.hits) as any[];
} else {
// TODO: handle this better?
console.log("No results for search");
} }
res.status(200).json({ data: { products, found } }) res.status(200).json({ data: { products, found } })
} }