Exception tracker with account (#6603)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user