diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-10-20 03:28:34 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-10-20 03:28:34 +0000 |
| commit | a4ec58dc60b2feb8b71331e76dba7a8de5bdca53 (patch) | |
| tree | 2599b29c675debdc5536c859b2680e954f7f9a57 /src/pages/api | |
| parent | ac9dde7aec76ea78d4850e2e6a180a52c45c0aa8 (diff) | |
| parent | b8f5507cda2ede25ebc5433439168a8dadc71ddc (diff) | |
Merged in CR/UI (pull request #106)
fixing serach
Diffstat (limited to 'src/pages/api')
| -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 |
