[object Object]

← back to Glitterwalls

fix /api/facets total to report niche-filtered count not pre-niche

3b03cce8664d4b875ac1b4573d7787c37cef173e · 2026-05-18 20:43:29 -0700 · Steve Abrams

Files touched

Diff

commit 3b03cce8664d4b875ac1b4573d7787c37cef173e
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon May 18 20:43:29 2026 -0700

    fix /api/facets total to report niche-filtered count not pre-niche
---
 server.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server.js b/server.js
index 27dd155..094a480 100644
--- a/server.js
+++ b/server.js
@@ -176,7 +176,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 }));

← 9110605 hero-4grid: relocate json from data/ to public/ for Express  ·  back to Glitterwalls  ·  untrack 17 stale .bak snapshots and ignore *.bak.*/*.pre-* p 30b7ddc →