Chatwoot/app/views/api/v1/widget/contacts/set_user.json.jbuilder
Sojan Jose f71980bd95
chore: Enhance contact merge action for identified users (#4886)
- Discard conflicting keys 
- Do not merge if there is already an identified contact

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
2022-06-23 15:48:56 +05:30

5 lines
183 B
Ruby

json.id @contact.id
json.name @contact.name
json.email @contact.email
json.phone_number @contact.phone_number
json.widget_auth_token @widget_auth_token if @widget_auth_token.present?