← back to Linenwallpaper
fix /api/facets total — reflect filtered (niche) list count, not raw PRODUCTS
bda38a4e369b5b8c0cbb43518584b6135ca6695e · 2026-05-25 21:14:55 -0700 · Steve Abrams
Files touched
Diff
commit bda38a4e369b5b8c0cbb43518584b6135ca6695e
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon May 25 21:14:55 2026 -0700
fix /api/facets total — reflect filtered (niche) list count, not raw PRODUCTS
---
server.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 4291ea1..74117f2 100644
--- a/server.js
+++ b/server.js
@@ -178,7 +178,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 }));
← 5ac690b wire api-vendor-redact middleware FIRST in app.use chain — s
·
back to Linenwallpaper
·
add 404-guard for .bak/.pre-* files — defense-in-depth again e13d761 →