Session_id was not correctly stored for chat sessions, and it was defined as an integer iso a UUID in the database

This commit is contained in:
Josako
2024-09-27 11:24:43 +02:00
parent d9cb00fcdc
commit ae697df4c9
3 changed files with 41 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ def ask_question(tenant_id, question, language, session_id, user_timezone, room)
'interaction_id': 'interaction_id_value'
}
"""
with BusinessEvent("Ask Question", tenant_id=tenant_id, session_id=session_id):
with BusinessEvent("Ask Question", tenant_id=tenant_id, chat_session_id=session_id):
current_app.logger.info(f'ask_question: Received question for tenant {tenant_id}: {question}. Processing...')
try: