diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-05 17:07:35 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-05 17:07:35 +0700 |
| commit | 54fca7062ee0963d6ea6a22a82fba7fa3fa516e5 (patch) | |
| tree | fe798366f2d39a4d359efbf1a1b1a6761d37847e /src/lib/category/api/popularProduct.js | |
| parent | aaac6b72dddf8ef8460941797a1f6d88f289f726 (diff) | |
<iman> update category management
Diffstat (limited to 'src/lib/category/api/popularProduct.js')
| -rw-r--r-- | src/lib/category/api/popularProduct.js | 7 |
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}`); } |
