diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-15 16:29:48 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-15 16:29:48 +0700 |
| commit | 98236a47c3558c4b701009a275c7ae917ee8bf67 (patch) | |
| tree | 21e0300680a724c8a24ed815ea4e9a32ab13a895 /src/api/promoApi.js | |
| parent | 1fa1a7873aa67cdd9ca211c239276a148cd4cdda (diff) | |
| parent | 7a14ed5ccdde86d0400d6aa02ac866317d4add63 (diff) | |
Merge branch 'new-release' into Feature/switch-account
# Conflicts:
# src/lib/auth/components/CompanyProfile.jsx
# src/lib/auth/components/Menu.jsx
Diffstat (limited to 'src/api/promoApi.js')
| -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}`); } |
