summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-08-15 10:23:46 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-08-15 10:23:46 +0000
commit1a68a24e9fb58ecc1ade9d1d792ea06b432e4989 (patch)
tree3baed9ae26c8469602b67f7e123c7b08db7970b9 /src
parent5ef267f76486ed590c00d3c37cccde5c713491cd (diff)
parente03019b506260bcf1cb2b8d441b566fe568c6f6f (diff)
Merged in search_engine (pull request #443)
<Miqdad> Temp fix ready stock
Diffstat (limited to 'src')
-rw-r--r--src/pages/api/shop/search.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/api/shop/search.js b/src/pages/api/shop/search.js
index e14b0ca2..3d258a97 100644
--- a/src/pages/api/shop/search.js
+++ b/src/pages/api/shop/search.js
@@ -90,7 +90,8 @@ export default async function handler(req, res) {
];
if (orderBy === 'stock') {
- filterQueries.push('stock_total_f:{0 TO *}');
+ filterQueries.push('stock_total_f:{1 TO *}&sort=stock_total_f desc');
+ // filterQueries.push(`stock_total_f DESC`)
}
if (fq && source != 'similar' && typeof fq != 'string') {