mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
remove console log
This commit is contained in:
parent
8909e94a6a
commit
02b477bdea
@ -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 } })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user