summaryrefslogtreecommitdiff
path: root/src/api/promoApi.js
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-01-09 10:23:38 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-01-09 10:23:38 +0700
commit4d6387f0c85f13cc6c3929432e237f7251e74e87 (patch)
treeb7874fa7263c4fb6348455ab0a5d6231b355f1f7 /src/api/promoApi.js
parent0235faf22d1dfbaac8a141d5071a0ae5872ea935 (diff)
<iman> add active_b : true
Diffstat (limited to 'src/api/promoApi.js')
-rw-r--r--src/api/promoApi.js4
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}`);
}