[object Object]

← back to Wallco Ai

wallco.ai: color-wheel hue swatch row above /designs · 10 buckets (rose/amber/honey/olive/sage/marine/sapphire/mauve/plum/neutral) each with chip+swatch+count · combines with cat/motif/q filters · live counts: amber 25 · honey 9 · neutral 9 · marine 5 · sapphire 5

702863d93b9a6a7c07cf5ea34a67f180e8e16156 · 2026-05-11 21:12:48 -0700 · Steve

Files touched

Diff

commit 702863d93b9a6a7c07cf5ea34a67f180e8e16156
Author: Steve <steve@designerwallcoverings.com>
Date:   Mon May 11 21:12:48 2026 -0700

    wallco.ai: color-wheel hue swatch row above /designs · 10 buckets (rose/amber/honey/olive/sage/marine/sapphire/mauve/plum/neutral) each with chip+swatch+count · combines with cat/motif/q filters · live counts: amber 25 · honey 9 · neutral 9 · marine 5 · sapphire 5
---
 src/chat.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/chat.js b/src/chat.js
index c6693b2..d169d96 100644
--- a/src/chat.js
+++ b/src/chat.js
@@ -37,8 +37,12 @@ function loadReplicateToken() {
   return null;
 }
 
+const PSQL_CMD = (process.platform === 'linux')
+  ? `sudo -n -u postgres psql dw_unified -At -q`
+  : `psql dw_unified -At -q`;
+
 function psql(sql) {
-  return execSync(`psql dw_unified -At -q`, { input: sql, encoding: 'utf8' }).trim();
+  return execSync(PSQL_CMD, { input: sql, encoding: 'utf8' }).trim();
 }
 function esc(s) { if (s == null) return 'NULL'; return "'" + String(s).replace(/'/g, "''") + "'"; }
 

← f5de4b2 Architect refactor (items 1+3+5 from punch list) — extract a  ·  back to Wallco Ai  ·  wallco.ai admin: /admin/leads viewer — table of all wallco_l 7ffd43b →