[object Object]

← back to Designerwallcoverings

TK-10484: archived 33 yorkwall no-price NU rows; fix count parse (-tA)

6d77d926dfa89bca0e985fe038e50d30f0066601 · 2026-09-24 13:09:00 -0700 · Steve Abrams

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 6d77d926dfa89bca0e985fe038e50d30f0066601
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Sep 24 13:09:00 2026 -0700

    TK-10484: archived 33 yorkwall no-price NU rows; fix count parse (-tA)
    
    Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---
 scripts/tk10484-archive-yorkwall-noprice.mjs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/tk10484-archive-yorkwall-noprice.mjs b/scripts/tk10484-archive-yorkwall-noprice.mjs
index 9d71324..388fd17 100644
--- a/scripts/tk10484-archive-yorkwall-noprice.mjs
+++ b/scripts/tk10484-archive-yorkwall-noprice.mjs
@@ -68,7 +68,7 @@ UPDATE jeffrey_stevens_catalog
   WHERE recovered_mfr_code IN (${codes}) AND archived_at IS NULL;
 COMMIT;`);
 
-const n = psql(`SELECT count(*) FROM jeffrey_stevens_catalog WHERE recovered_mfr_code IN (${codes}) AND archived_at IS NOT NULL;`).trim().match(/^\s*(\d+)/)?.[1] || '0';
+const n = execFileSync('psql', [...PG, '-tA', '-c', `SELECT count(*) FROM jeffrey_stevens_catalog WHERE recovered_mfr_code IN (${codes}) AND archived_at IS NOT NULL;`], { encoding: 'utf8' }).trim();
 console.log(`APPLIED — ${n} no-price NU codes archived (expected ${noprice.length}).`);
 if (Number(n) !== noprice.length) {
   console.log('WARNING: count mismatch — investigate.');

← 41b4348 TK-10484: reversible archiver for 33 yorkwall no-price NU co  ·  back to Designerwallcoverings  ·  TK-10484: reversible cost fix for 4 NU rows (25 -> Yorkwall 1fc203f →