mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
* Chore: Code Cleanup in API controllers * Remove unnecessary scoping for accounts controller
16 lines
408 B
Ruby
16 lines
408 B
Ruby
class Api::V1::Widget::ContactsController < Api::V1::Widget::BaseController
|
|
def update
|
|
contact_identify_action = ContactIdentifyAction.new(
|
|
contact: @contact,
|
|
params: permitted_params.to_h.deep_symbolize_keys
|
|
)
|
|
render json: contact_identify_action.perform
|
|
end
|
|
|
|
private
|
|
|
|
def permitted_params
|
|
params.permit(:website_token, :identifier, :email, :name, :avatar_url)
|
|
end
|
|
end
|