[object Object]

← back to Hospitalitywallcoverings

remove dead PRODUCTS_ORIG alias and unused __products_niche_applied global

312521e6802d3646d6fda03513fc22bf5b39c6ef · 2026-05-18 20:38:15 -0700 · Steve Abrams

Files touched

Diff

commit 312521e6802d3646d6fda03513fc22bf5b39c6ef
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon May 18 20:38:15 2026 -0700

    remove dead PRODUCTS_ORIG alias and unused __products_niche_applied global
---
 server.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/server.js b/server.js
index 5b60fe2..4f1af4a 100644
--- a/server.js
+++ b/server.js
@@ -48,10 +48,7 @@ function nicheFit(p) {
 const PRODUCTS_NICHE = PRODUCTS.filter(nicheFit);
 const NICHE_DROPPED = PRODUCTS.length - PRODUCTS_NICHE.length;
 console.log(`Niche filter: kept ${PRODUCTS_NICHE.length} of ${PRODUCTS.length}, dropped ${NICHE_DROPPED}`);
-// Replace PRODUCTS reference with the niche-filtered list for all downstream handlers.
-const PRODUCTS_ORIG = PRODUCTS;
-Object.defineProperty(global, '__products_niche_applied', { value: true });
-
+// All downstream handlers use the niche-filtered list PRODUCTS_NICHE.
 
 const app = express();
 // Security headers via helmet (added 2026-05-04 overnight YOLO loop)

← ff79c29 untrack 18 stale .bak/.pre-* snapshots and broaden .gitignor  ·  back to Hospitalitywallcoverings  ·  drop stale leftover comment in /api/products handler 2585e9a →