fix: Update collection ID retrieval logic and simplify error logging in AI Knowledge sync event handler
This commit is contained in:
@@ -144,7 +144,8 @@ class AIKnowledgeSync(BaseSyncUtils):
|
||||
}
|
||||
)
|
||||
|
||||
collection_id = collection['id']
|
||||
# XAI API returns 'collection_id' not 'id'
|
||||
collection_id = collection.get('collection_id') or collection.get('id')
|
||||
|
||||
# Update EspoCRM: Set datenbankId + change status to 'active'
|
||||
await espocrm.update_entity('CAIKnowledge', knowledge_id, {
|
||||
|
||||
Reference in New Issue
Block a user