summaryrefslogtreecommitdiff
path: root/src/pages/api/shop/promo.js
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-09-02 16:43:25 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-09-02 16:43:25 +0700
commitb30e6a53d660f9ccbc0ded640c2a1dc5df673ff2 (patch)
treeae840e06b29d9ccdeb88c31b17d1962ebd9f5539 /src/pages/api/shop/promo.js
parent3f384749fe51a2763e7e99351f36ce70954afb7a (diff)
<iman> update fetch data
Diffstat (limited to 'src/pages/api/shop/promo.js')
-rw-r--r--src/pages/api/shop/promo.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/api/shop/promo.js b/src/pages/api/shop/promo.js
index 353ff3df..e6867e89 100644
--- a/src/pages/api/shop/promo.js
+++ b/src/pages/api/shop/promo.js
@@ -108,12 +108,12 @@ export default async function handler(req, res) {
let result = await axios(
process.env.SOLR_HOST + '/solr/promotion_program_lines/select?' + parameter.join('&')
);
- console.log("result",result)
try {
result.data.response.products = promoMappingSolr(
- result.data.response.docs,
- auth?.pricelist || false
+ result.data.response.docs
);
+ console.log("result.data.response.products",result.data.response.products)
+
result.data.responseHeader.params.start = parseInt(
result.data.responseHeader.params.start
);