Fix: missing DB columns (ml_score, capacity_hours) + CSS escape fix + SQL error logging
Build & Auto-Repair / build (push) Has been cancelled

This commit is contained in:
JCBSComputer
2026-07-02 15:58:40 +02:00
parent aabdbf9b91
commit 4c732c850f
2 changed files with 10 additions and 4 deletions
+4 -4
View File
@@ -682,10 +682,10 @@
.dark.theme-bw .to-\[#5A8FC4\], .dark.theme-bw .dark\:to-\[\#5A8FC4\] { --tw-gradient-from: hsl(0,0%,50%) !important; }
/* ----- Dark mode: SVG stroke/fill (app-shell, etc) ----- */
.dark.theme-bw [stroke\="#CC0000"] { stroke: hsl(0,0%,50%) !important; }
.dark.theme-bw [stroke\="#0033CC"] { stroke: hsl(0,0%,50%) !important; }
.dark.theme-bw [fill\="#2D3020"] { fill: hsl(0,0%,20%) !important; }
.dark.theme-bw [fill\="#8A9078"] { fill: hsl(0,0%,55%) !important; }
.dark.theme-bw [stroke="#CC0000"] { stroke: hsl(0,0%,50%) !important; }
.dark.theme-bw [stroke="#0033CC"] { stroke: hsl(0,0%,50%) !important; }
.dark.theme-bw [fill="#2D3020"] { fill: hsl(0,0%,20%) !important; }
.dark.theme-bw [fill="#8A9078"] { fill: hsl(0,0%,55%) !important; }
/* ----- Dark mode: Hover states ----- */
.dark.theme-bw .hover\:bg-sky-400\/20:hover { background-color: hsla(0,0%,50%,0.2) !important; }
+6
View File
@@ -24,6 +24,12 @@ export async function query(text: string, params?: unknown[], userId?: string) {
}
const result = await client.query(text, params)
return result
} catch (error) {
const msg = error instanceof Error ? error.message : String(error)
console.error(`[DB] query failed — ${msg}`)
console.error(`[DB] SQL: ${text}`)
if (params && params.length > 0) console.error(`[DB] Params:`, JSON.stringify(params))
throw error
} finally {
client.release()
}