[object Object]

← back to Commercialrealestate

fix: raise /api/residential cap 12k->25k — SFR active grew past 12k, truncating off-market/sold rows off prod

84883623a8ff080eeecc552e65c73fa357148434 · 2026-07-07 07:52:22 -0700 · Steve Abrams

Files touched

Diff

commit 84883623a8ff080eeecc552e65c73fa357148434
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Tue Jul 7 07:52:22 2026 -0700

    fix: raise /api/residential cap 12k->25k — SFR active grew past 12k, truncating off-market/sold rows off prod
---
 scripts/serve.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/serve.js b/scripts/serve.js
index bbb1ab5..dee7727 100644
--- a/scripts/serve.js
+++ b/scripts/serve.js
@@ -303,7 +303,7 @@ app.get('/api/condos', async (req, res) => {
 // prod (Kamatera has no DB — reads data/sfr-redfin.json produced by export-sfr-snapshot.js).
 const SFR_LABEL = 'Single-family for-sale — Redfin LA County (feed-first gis-csv). Listing agent shown where Redfin exposed it.';
 app.get('/api/residential', async (req, res) => {
-  const limit = Math.min(+req.query.limit || 12000, 12000);
+  const limit = Math.min(+req.query.limit || 25000, 25000); // must exceed total SFR (active grew >12k) so off-market/sold aren't truncated
   // 1) live DB first
   if (brokerdb) {
     try {

← 27c5ece snapshots: escrow + DOM coverage (sfr 3860 escrow/13079 dom,  ·  back to Commercialrealestate  ·  residential report: LA Residential Pulse (SFR+condo) email — eb0c10c →