diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-09 10:23:38 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-09 10:23:38 +0700 |
| commit | 4d6387f0c85f13cc6c3929432e237f7251e74e87 (patch) | |
| tree | b7874fa7263c4fb6348455ab0a5d6231b355f1f7 /src | |
| parent | 0235faf22d1dfbaac8a141d5071a0ae5872ea935 (diff) | |
<iman> add active_b : true
Diffstat (limited to 'src')
| -rw-r--r-- | src/api/promoApi.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/promoApi.js b/src/api/promoApi.js index 3f85db8e..8adc4647 100644 --- a/src/api/promoApi.js +++ b/src/api/promoApi.js @@ -22,7 +22,9 @@ export const fetchPromoItemsSolr = async (type, start, rows) => { // let rows = 10 try { const queryParams = new URLSearchParams({ q: type }); - const response = await fetch(`/solr/promotion_program_lines/select?${queryParams.toString()}&rows=${rows}&start=${start}&${sort}`); + const response = await fetch( + `/solr/promotion_program_lines/select?${queryParams.toString()}&rows=${rows}&start=${start}&${sort}&fq=active_b%3Atrue` + ); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } |
