summaryrefslogtreecommitdiff
path: root/src/api/promoApi.js
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-01-22 10:10:19 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-01-22 10:10:19 +0700
commit5cc3c938da3dfde636b918b8f2fdef33f3c61419 (patch)
tree222177fe6dce70fc608698c700de17032105998a /src/api/promoApi.js
parent238c675eecaf6f4f953d87c4b0a128bfa139cff4 (diff)
parent6d9c1067b6e857eb95f12864cc88117350ae6cfb (diff)
Merge branch 'new-release' into CR/form-merchant
# Conflicts: # src/lib/form/components/Merchant.jsx
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}`);
}