chore: Update deleteCustomAttribute
method in SDK (#3334)
This commit is contained in:
parent
c2db8a1fd7
commit
a2764e5c1d
12 changed files with 138 additions and 30 deletions
|
@ -11,6 +11,13 @@ class Api::V1::Widget::ContactsController < Api::V1::Widget::BaseController
|
|||
render json: contact_identify_action.perform
|
||||
end
|
||||
|
||||
# TODO : clean up this with proper routes delete contacts/custom_attributes
|
||||
def destroy_custom_attributes
|
||||
@contact.custom_attributes = @contact.custom_attributes.excluding(params[:custom_attributes])
|
||||
@contact.save!
|
||||
render json: @contact
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def process_hmac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue