ba8f055802
* change sender_id to contact_id in conversations * Fix failing tests * Fix seeds * fix specs * Fix issues in facebook messenger
15 lines
345 B
Ruby
15 lines
345 B
Ruby
json.data do
|
|
json.meta do
|
|
end
|
|
|
|
json.payload do
|
|
json.array! @inboxes do |inbox|
|
|
json.id inbox.id
|
|
json.channel_id inbox.channel_id
|
|
json.name inbox.name
|
|
json.channel_type inbox.channel_type
|
|
json.avatar_url inbox.channel.try(:avatar).try(:url)
|
|
json.page_id inbox.channel.try(:page_id)
|
|
end
|
|
end
|
|
end
|