diff --git a/app/listeners/automation_rule_listener.rb b/app/listeners/automation_rule_listener.rb index 57e5f6da6..022c49242 100644 --- a/app/listeners/automation_rule_listener.rb +++ b/app/listeners/automation_rule_listener.rb @@ -45,7 +45,8 @@ class AutomationRuleListener < BaseListener @rules = AutomationRule.where( event_name: event_name, - account_id: conversation.account_id + account_id: conversation.account_id, + active: true ) @rules.any? end