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 = csml_client.validate(csml_bot_payload)
|
||||||
response.blank? || response['valid']
|
response.blank? || response['valid']
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
ChatwootExceptionTracker.new(e, account: agent_bot).capture_exception
|
ChatwootExceptionTracker.new(e, account: agent_bot&.account).capture_exception
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class Integrations::BotProcessorService
|
|||||||
|
|
||||||
process_content(message)
|
process_content(message)
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
ChatwootExceptionTracker.new(e, account: hook).capture_exception
|
ChatwootExceptionTracker.new(e, account: hook.account).capture_exception
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Reference in New Issue
Block a user