From 4b749c672a7a9b93ee65198f8bec703909711e84 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Sat, 30 Aug 2025 10:10:16 +0700 Subject: Fix --- src/pages/api/shop/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)}`); -- cgit v1.2.3