Chatwoot/app/views/api/v1/accounts/conversations/text_search.json.jbuilder
2022-12-21 13:30:25 +05:30

13 lines
438 B
Ruby

json.payload do
json.array! @result[:conversations] do |conversation|
json.partial! 'api/v1/models/conversation', formats: [:json], conversation: conversation
end
json.array! @result[:contacts] do |contact|
json.partial! 'api/v1/models/contact', formats: [:json], resource: contact
end
json.array! @result[:messages] do |message|
json.partial! 'api/v1/models/message', formats: [:json], message: message
end
end