diff --git a/app/views/api/v1/accounts/conversations/text_search.json.jbuilder b/app/views/api/v1/accounts/conversations/text_search.json.jbuilder index b49bd445e..0439c1cf9 100644 --- a/app/views/api/v1/accounts/conversations/text_search.json.jbuilder +++ b/app/views/api/v1/accounts/conversations/text_search.json.jbuilder @@ -2,6 +2,9 @@ json.payload do json.conversations do json.array! @result[:conversations] do |conversation| json.partial! 'api/v1/models/conversation', formats: [:json], conversation: conversation + json.agent do + json.partial! 'api/v1/models/agent', formats: [:json], resource: conversation.assignee if conversation.assignee.present? + end end end