Fixes DB models

This commit is contained in:
ValueOn AG 2025-10-15 18:38:35 +02:00
parent b97670d939
commit 43b8a07b1d

View file

@ -99,6 +99,11 @@ class ChatObjects:
else:
field_type = type(value) # Fallback
# Always route relational/object fields to object_fields for separate handling
if field_name in ['documents', 'stats']:
object_fields[field_name] = value
continue
# Check if this is a JSONB field (Dict, List, or complex types)
if (field_type == dict or
field_type == list or