fix: added json for agents details in conversation

This commit is contained in:
Tejaswini Chile 2022-12-16 13:10:44 +05:30
parent a9b80da11c
commit 918eda22a6

View file

@ -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