fix: SSE streaming - WorkflowNode label attribute and ai_insights column name
- workflow_executor.py: Generate node_label from prompt_slug or node.type (WorkflowNode has no label attribute) - prompts.py: Fix INSERT statement - use 'created' column instead of 'created_at' SSE endpoint now works correctly for workflow execution streaming.
This commit is contained in:
1 parent
bb01283727
commit
fb2e0803c0
2 files changed
+5
-3
No files matched your search
@@ -1555,8 +1555,8 @@ async def execute_unified_prompt_stream(
|
||||
with get_db() as conn:
|
||||
cur = get_cursor(conn)
|
||||
cur.execute(
|
||||
"""INSERT INTO ai_insights (profile_id, scope, content, metadata, created_at)
|
||||
VALUES (%s, %s, %s, %s, NOW())""",
|
||||
"""INSERT INTO ai_insights (profile_id, scope, content, metadata, created)
|
||||
VALUES (%s, %s, %s, %s, CURRENT_TIMESTAMP)""",
|
||||
(profile_id, prompt_slug, content, json.dumps({"prompt_type": result['type']}))
|
||||
)
|
||||
conn.commit()
|
||||
|
||||
Reference in new issue
Block a user