summaryrefslogtreecommitdiff
path: root/src/pages/api/shop/product-detail.js
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-22 08:35:21 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-22 08:35:21 +0700
commit87e70c5ddc13b47ed4a9101d23174a65f52a0336 (patch)
tree8b56787233663c96d240992593fed8d355c8b35c /src/pages/api/shop/product-detail.js
parent00cbfa62bf4c5784b1c49c766cc2a53749a6cc43 (diff)
parente52f0ee9516d8601ffc92df9c085c2eee763c55c (diff)
Merge branch 'new-release' into Feature/pengajuan-tempo
Diffstat (limited to 'src/pages/api/shop/product-detail.js')
-rw-r--r--src/pages/api/shop/product-detail.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/api/shop/product-detail.js b/src/pages/api/shop/product-detail.js
index 247f2a04..faa96028 100644
--- a/src/pages/api/shop/product-detail.js
+++ b/src/pages/api/shop/product-detail.js
@@ -8,7 +8,7 @@ export default async function handler(req, res) {
)
let productVariants = await axios(
process.env.SOLR_HOST +
- `/solr/variants/select?q=template_id_i:${req.query.id}&q.op=OR&indent=true&rows=100&fq=-publish_b:false`
+ `/solr/variants/select?q=template_id_i:${req.query.id}&q.op=OR&indent=true&rows=100&fq=-publish_b:false AND price_tier1_v2_f:[1 TO *]`
)
let auth = req.query.auth === 'false' ? JSON.parse(req.query.auth) : req.query.auth
let result = productMappingSolr(productTemplate.data.response.docs, auth || false)