Fix: backend changes for custom attribute (#4830)

This commit is contained in:
Tejaswini Chile
2022-06-13 11:58:54 +05:30
committed by GitHub
parent 98f2160462
commit aa903a5da9
8 changed files with 122 additions and 69 deletions

View File

@@ -43,9 +43,9 @@ class AutomationRules::ConditionsFilterService < FilterService
@query_string += contact_query_string(contact_filter, query_hash.with_indifferent_access, current_index)
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)
elsif custom_attribute(query_hash['attribute_key'], @account, query_hash['custom_attribute_type'])
# 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