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

@@ -76,7 +76,7 @@ class Api::V1::Accounts::AutomationRulesController < Api::V1::Accounts::BaseCont
def automation_rules_permit
params.permit(
:name, :description, :event_name, :account_id, :active,
conditions: [:attribute_key, :filter_operator, :query_operator, { values: [] }],
conditions: [:attribute_key, :filter_operator, :query_operator, :custom_attribute_type, { values: [] }],
actions: [:action_name, { action_params: [] }]
)
end