fix: added json for agents details in conversation
This commit is contained in:
parent
a59dc72e68
commit
9c4714b658
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue