fix(synthesis): Use correct column name 'id' instead of 'execution_id'

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-01-29 03:19:09 +00:00
parent 9b667e69a7
commit 157b76040f

View File

@@ -433,10 +433,8 @@ Generate a complete synthesis with actionable insights.
"""Store synthesis in database.""" """Store synthesis in database."""
await self.pool.execute(""" await self.pool.execute("""
UPDATE pipeline.executions UPDATE pipeline.executions
SET SET synthesis = $2
synthesis = $2, WHERE id = $1::uuid
updated_at = NOW()
WHERE execution_id = $1::uuid
""", execution_id, json.dumps({ """, execution_id, json.dumps({
"executive_narrative": synthesis.executive_narrative, "executive_narrative": synthesis.executive_narrative,
"sentiment_insight": synthesis.sentiment_insight, "sentiment_insight": synthesis.sentiment_insight,