fix: preserve parent_id on chat_message upsert (#25205)

This commit is contained in:
Algorithm5838
2026-05-31 14:50:05 -07:00
committed by GitHub
parent bf6325ff33
commit 4b33d7ebc1
+1 -1
View File
@@ -172,7 +172,7 @@ class ChatMessageTable:
# Update existing
if 'role' in data:
existing.role = data['role']
if 'parent_id' in data:
if 'parent_id' in data or 'parentId' in data:
existing.parent_id = data.get('parent_id') or data.get('parentId')
if 'content' in data:
existing.content = data.get('content')