summaryrefslogtreecommitdiff
path: root/src/lib/category/api/popularProduct.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/category/api/popularProduct.js')
-rw-r--r--src/lib/category/api/popularProduct.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/category/api/popularProduct.js b/src/lib/category/api/popularProduct.js
index 2298f6fa..e17e0ae5 100644
--- a/src/lib/category/api/popularProduct.js
+++ b/src/lib/category/api/popularProduct.js
@@ -3,12 +3,7 @@ export const fetchPromoItemsSolr = async (category_id_ids) => {
let sort ='sort=qty_sold_f desc';
try {
const queryParams = new URLSearchParams({ q: category_id_ids });
- // const response = await fetch(`/solr/product/select?${queryParams.toString()}&rows=2000&fl=manufacture_name_s&${sort}`);
- console.log("queryParams",queryParams)
-
- // const response = await fetch(`/solr/product/select?${queryParams.toString()}`);
- const response = await fetch(`/solr/promotion_program_lines/select?${queryParams.toString()}&rows=10&start=0&${sort}`);
- console.log("response",response)
+ const response = await fetch(`/solr/product/select?${queryParams.toString()}&rows=2000&fl=manufacture_name_s,manufacture_id_i,id,display_name_s&${sort}`);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}