fix: added json for agents details in conversation
This commit is contained in:
parent
a9b80da11c
commit
918eda22a6
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