fix: Disable active automation_rule_listener
This commit is contained in:
parent
dcecbf4b80
commit
cdcc9523d4
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ class AutomationRuleListener < BaseListener
|
||||||
|
|
||||||
@rules = AutomationRule.where(
|
@rules = AutomationRule.where(
|
||||||
event_name: event_name,
|
event_name: event_name,
|
||||||
account_id: conversation.account_id
|
account_id: conversation.account_id,
|
||||||
|
active: true
|
||||||
)
|
)
|
||||||
@rules.any?
|
@rules.any?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue