Fix: Custom attribute filter based on the type

This commit is contained in:
Tejaswini 2022-05-24 16:26:59 +05:30
parent d20eafbda4
commit 05c306f638

View file

@ -38,8 +38,7 @@ class AutomationRules::ConditionsFilterService < FilterService
elsif message_filter
@query_string += message_query_string(message_filter, query_hash.with_indifferent_access, current_index)
elsif custom_attribute(query_hash['attribute_key'], @account)
# send table name according to attribute key right now we are supporting contact based custom attribute filter
@query_string += custom_attribute_query(query_hash.with_indifferent_access, 'contacts', current_index)
@query_string += custom_attribute_query(query_hash.with_indifferent_access, query_hash['custom_attribute_type'], current_index)
end
end