diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-09-12 10:33:12 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-09-12 10:33:12 +0700 |
| commit | 05328fd8972bfd6f4a14a036603b70ba35386a14 (patch) | |
| tree | b991a49a38fd364e749086830fdd89aa1f209f8a /src/pages/api/shop/promo.js | |
| parent | 914729a0d6ba9a9dd32d308954642439fa88c1d2 (diff) | |
| parent | 375365d46144e6f20bf7d4ffee1f52e6400cf214 (diff) | |
Merge branch 'release' into CR/product_detail
Diffstat (limited to 'src/pages/api/shop/promo.js')
| -rw-r--r-- | src/pages/api/shop/promo.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pages/api/shop/promo.js b/src/pages/api/shop/promo.js index 221a9adb..f90c8559 100644 --- a/src/pages/api/shop/promo.js +++ b/src/pages/api/shop/promo.js @@ -52,6 +52,7 @@ export default async function handler(req, res) { 'facet.field=category_name', 'facet=true', 'indent=true', + `facet.limit=-1`, // `facet.query=${escapeSolrQuery(q)}`, `q.op=${operation}`, `q=${q}`, @@ -60,6 +61,7 @@ export default async function handler(req, res) { `rows=${limit}`, `sort=${paramOrderBy}`, `fq=product_ids:[* TO *]`, + `fq=active_b:true`, ]; if (priceFrom > 0 || priceTo > 0) { |
