feat: Add additional attributes in setUser method (#3958)

This commit is contained in:
Muhsin Keloth
2022-02-28 12:10:55 +05:30
committed by GitHub
parent 9b615f11f1
commit 46c1734ba1
4 changed files with 55 additions and 10 deletions

View File

@@ -46,6 +46,7 @@ class Api::V1::Widget::ContactsController < Api::V1::Widget::BaseController
end
def permitted_params
params.permit(:website_token, :identifier, :identifier_hash, :email, :name, :avatar_url, :phone_number, custom_attributes: {})
params.permit(:website_token, :identifier, :identifier_hash, :email, :name, :avatar_url, :phone_number, custom_attributes: {},
additional_attributes: {})
end
end