diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-10-20 10:26:15 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-10-20 10:26:15 +0700 |
| commit | b8f5507cda2ede25ebc5433439168a8dadc71ddc (patch) | |
| tree | 44e1b3eee76cb8175476f6bcd67867e0c12c04ee /src/pages/api/shop | |
| parent | 70591a6a132d25656e4404d78d6364e21949e81a (diff) | |
fixing serach
Diffstat (limited to 'src/pages/api/shop')
| -rw-r--r-- | src/pages/api/shop/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/api/shop/search.js b/src/pages/api/shop/search.js index b4d67c5d..883bb8df 100644 --- a/src/pages/api/shop/search.js +++ b/src/pages/api/shop/search.js @@ -67,7 +67,7 @@ export default async function handler(req, res) { } if (brand) parameter.push(`fq=manufacture_name:${brand.replace(/,/g, ' OR ')}`) - if (category) parameter.push(`fq=category_name:${category}`) + if (category) parameter.push(`fq=category_name:${category.replace(/,/g, ' OR ')}`) if (stock) parameter.push(`fq=stock_total_f:{1 TO *}`) // Single fq in url params |
