fix(agent-bot): address rubocop offenses in assignee_changed handler
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
40d00d895d
commit
287a75b524
@@ -17,9 +17,8 @@ class AgentBotListener < BaseListener
|
||||
|
||||
def assignee_changed(event)
|
||||
conversation = extract_conversation_and_account(event)[0]
|
||||
return unless conversation.assignee_agent_bot.present?
|
||||
return if conversation.assignee_agent_bot.blank?
|
||||
|
||||
conversation.inbox
|
||||
payload = conversation.webhook_data.merge(event: __method__.to_s)
|
||||
process_webhook_bot_event(conversation.assignee_agent_bot, payload)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user