summaryrefslogtreecommitdiff
path: root/src/pages/api
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-27 08:27:54 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-27 08:27:54 +0700
commite5a01976cb665b824b2ad6426a2c52a5bd0964e6 (patch)
tree2225b76f4824c5f9e80467dceedf257c46887297 /src/pages/api
parent4758a0989f2ec0d79e1c5e3a3d42c249f28a9e72 (diff)
<iman> add feature category lob
Diffstat (limited to 'src/pages/api')
-rw-r--r--src/pages/api/shop/product-homepage.js3
-rw-r--r--src/pages/api/shop/search.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/pages/api/shop/product-homepage.js b/src/pages/api/shop/product-homepage.js
index 02c01ee0..61732c77 100644
--- a/src/pages/api/shop/product-homepage.js
+++ b/src/pages/api/shop/product-homepage.js
@@ -36,7 +36,8 @@ const respoonseMap = (productHomepage, products) => {
name: productHomepage.name_s,
image: productHomepage.image_s,
url: productHomepage.url_s,
- products: products
+ products: products,
+ categoryIds: productHomepage.category_id_ids,
}
return productMapped
diff --git a/src/pages/api/shop/search.js b/src/pages/api/shop/search.js
index b6b8c795..66f517ae 100644
--- a/src/pages/api/shop/search.js
+++ b/src/pages/api/shop/search.js
@@ -56,7 +56,7 @@ export default async function handler(req, res) {
`start=${parseInt(offset)}`,
`rows=${limit}`,
`sort=${paramOrderBy}`,
- `fq=-publish_b:false`,
+ // `fq=-publish_b:false`,
];
if (priceFrom > 0 || priceTo > 0) {