Update integration_service.py
This commit is contained in:
@@ -287,7 +287,11 @@ class IntegrationService:
|
||||
logger.info(f"[IntegrationService] ✓ IGNY8 plugin installed")
|
||||
|
||||
status_data = status_response.json()
|
||||
if status_data.get('connected') or status_data.get('has_api_key'):
|
||||
# Plugin returns unified format: {success: true, data: {...}}
|
||||
# Extract data from unified response format
|
||||
plugin_data = status_data.get('data', status_data) # Fallback to direct access for legacy
|
||||
|
||||
if plugin_data.get('connected') or plugin_data.get('has_api_key'):
|
||||
health_checks['plugin_has_api_key'] = True
|
||||
logger.info(f"[IntegrationService] ✓ Plugin has API key configured")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user