Exception tracker with account (#6603)

This commit is contained in:
Tejaswini Chile
2023-03-03 12:14:44 +05:30
committed by GitHub
parent a685e065da
commit 60fee519bd
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ class AgentBots::ValidateBotService
response = csml_client.validate(csml_bot_payload)
response.blank? || response['valid']
rescue StandardError => e
ChatwootExceptionTracker.new(e, account: agent_bot).capture_exception
ChatwootExceptionTracker.new(e, account: agent_bot&.account).capture_exception
false
end
end

View File

@@ -7,7 +7,7 @@ class Integrations::BotProcessorService
process_content(message)
rescue StandardError => e
ChatwootExceptionTracker.new(e, account: hook).capture_exception
ChatwootExceptionTracker.new(e, account: hook.account).capture_exception
end
private