← back to Jutewallpaper
fix: /api/facets total reports niche-filtered count not pre-niche count
f03c520737847425e0b03712c6be16de1ed79bdd · 2026-05-18 20:53:09 -0700 · Steve Abrams
Files touched
Diff
commit f03c520737847425e0b03712c6be16de1ed79bdd
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon May 18 20:53:09 2026 -0700
fix: /api/facets total reports niche-filtered count not pre-niche count
---
server.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 01c12e2..c10cbc1 100644
--- a/server.js
+++ b/server.js
@@ -174,7 +174,7 @@ app.get('/api/facets', (req, res) => {
aesthetics[p.aesthetic] = (aesthetics[p.aesthetic] || 0) + 1;
vendors[p.vendor] = (vendors[p.vendor] || 0) + 1;
}
- res.json({ aesthetics, vendors, total: PRODUCTS.length });
+ res.json({ aesthetics, vendors, total: PRODUCTS_NICHE.length });
});
app.get('/api/health', (req, res) => res.json({ status: 'ok', count: PRODUCTS_NICHE.length, dropped: DROPPED }));
← 1216c56 fix: product grid sort select now actually passes sort to /a
·
back to Jutewallpaper
·
untrack stale .bak/.pre-* snapshot files and ignore the patt 9f560c1 →