[object Object]

← back to Retrowalls

fix: stale res.json fragment causing SyntaxError

a49889a5a8c986f9d4c8ec2864a68837688c8263 · 2026-05-07 12:36:48 -0700 · Steve

Files touched

Diff

commit a49889a5a8c986f9d4c8ec2864a68837688c8263
Author: Steve <steve@designerwallcoverings.com>
Date:   Thu May 7 12:36:48 2026 -0700

    fix: stale res.json fragment causing SyntaxError
---
 server.js | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/server.js b/server.js
index 662c18e..450e4fd 100644
--- a/server.js
+++ b/server.js
@@ -84,9 +84,6 @@ app.get('/api/products', (req, res) => {
   const lim = Math.min(60, parseInt(limit) || 24);
   const start = (pageNum - 1) * lim;
   res.json({ total, page: pageNum, limit: lim, pages: Math.ceil(total/lim), sort, items: list.slice(start, start + lim) });
-  // (replaced) old: pages: Math.ceil(total / lim),
-    items: list.slice(start, start + lim),
-  });
 });
 
 app.get('/api/sliders', (req, res) => {

← 0397efd graphic-loop pass 10: center-mark to top + readable text-sha  ·  back to Retrowalls  ·  graphic-loop pass 11: add Ideas rails (New this week + Curat 26fd8af →