summaryrefslogtreecommitdiff
path: root/src/pages/api
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-09-02 17:11:10 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-09-02 17:11:10 +0700
commit68ec9564aef424b86702512637c9cb738b44f215 (patch)
treee366f72f948458e12514e00c67d625a050ab2f19 /src/pages/api
parentb30e6a53d660f9ccbc0ded640c2a1dc5df673ff2 (diff)
<iman> update search
Diffstat (limited to 'src/pages/api')
-rw-r--r--src/pages/api/shop/promo.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/api/shop/promo.js b/src/pages/api/shop/promo.js
index e6867e89..61fff4e5 100644
--- a/src/pages/api/shop/promo.js
+++ b/src/pages/api/shop/promo.js
@@ -122,7 +122,8 @@ export default async function handler(req, res) {
);
delete result.data.response.docs;
console.log("result.data",result.data)
- result.data = camelcaseObjectDeep(result.data);
+ // result.data = camelcaseObjectDeep(result.data);
+ result.data = result.data;
res.status(200).json(result.data);
} catch (error) {
res.status(400).json({ error: error.message });