diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-30 10:10:16 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-30 10:10:16 +0700 |
| commit | 4b749c672a7a9b93ee65198f8bec703909711e84 (patch) | |
| tree | ae7d3cb59848c803e17a3fabd4ac50e44919112a | |
| parent | 2d5dcd6e810825950b4fc564135314fc466250fa (diff) | |
<Miqdad> Fix
| -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 8412c8f6..a8ce4221 100644 --- a/src/pages/api/shop/search.js +++ b/src/pages/api/shop/search.js @@ -166,7 +166,7 @@ export default async function handler(req, res) { ); // if (category) parameter.push(`fq=category_name:${capitalizeFirstLetter(category.replace(/,/g, ' OR '))}`) - if (stock) parameter.push(`fq=stock_total_f:{1 TO *}`); + if (stock) parameter.push(`fq=stock_total_f:{1 TO *]`); // Single fq in url params if (typeof fq === 'string') parameter.push(`fq=${encodeURIComponent(fq)}`); |
