diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-30 13:53:33 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-30 13:53:33 +0700 |
| commit | 7735e705142e9a56f37c90b09ea5e6ba80d2bfa3 (patch) | |
| tree | a7deedd39dabac00eeb2e8b0ccc2ad7554568162 | |
| parent | 4b749c672a7a9b93ee65198f8bec703909711e84 (diff) | |
<miqdad> push
| -rw-r--r-- | src/pages/api/shop/search.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pages/api/shop/search.js b/src/pages/api/shop/search.js index a8ce4221..81cc22c5 100644 --- a/src/pages/api/shop/search.js +++ b/src/pages/api/shop/search.js @@ -89,8 +89,7 @@ export default async function handler(req, res) { ]; if (orderBy === 'stock') { - // JANGAN selipkan &sort di sini; sorting sudah di paramOrderBy - filterQueries.push('stock_total_f:{1 TO *}'); + filterQueries.push('stock_total_f:[1 TO *]'); } if (fq && source != 'similar' && typeof fq != 'string') { |
