iachat/app/views/api/v1/models/_inbox_slim.json.jbuilder
Shivam Mishra 27f7e0921e
feat: hide tokens and password on contact inbox payloads (#10888)
Contact Inbox object contained unnecessary attributes which will be removed under this PR.
2025-02-20 21:22:12 -08:00

8 lines
267 B
Ruby

json.id resource.id
json.avatar_url resource.try(:avatar_url)
json.channel_id resource.channel_id
json.name resource.name
json.channel_type resource.channel_type
json.provider resource.channel.try(:provider)
json.email resource.channel.try(:email) if resource.email?