fix: Disable active automation_rule_listener

This commit is contained in:
Pranav Raj S 2022-02-25 12:39:43 +05:30
parent dcecbf4b80
commit cdcc9523d4

View file

@ -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