← back to Agedwallpaper
/api/facets total now counts the niche-filtered list actually served, not the raw catalog
480804318b688c85b642747df35e9512c8366c63 · 2026-05-19 07:56:07 -0700 · SteveStudio2
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit 480804318b688c85b642747df35e9512c8366c63
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Tue May 19 07:56:07 2026 -0700
/api/facets total now counts the niche-filtered list actually served, not the raw catalog
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
server.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 0f723d5..318abc9 100644
--- a/server.js
+++ b/server.js
@@ -170,7 +170,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 }));
← de7b563 Wire sort select to API: send sort param + hydrate saved val
·
back to Agedwallpaper
·
Untrack snapshot backups; ignore *.bak/*.pre-*; 404-guard st c064454 →