fix: preserve parent_id on chat_message upsert (#25205)

This commit is contained in:
Algorithm5838 2026-06-01 00:50:05 +03:00 • committed by GitHub
parent bf6325ff33
commit 4b33d7ebc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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')