fix: added json for agents details in conversation

This commit is contained in:
Tejaswini Chile 2022-12-16 13:10:44 +05:30
parent a59dc72e68
commit 9c4714b658

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