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
+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()
}