chore: Use agent partial instead of user in conversation API (#1333)

This commit is contained in:
Pranav Raj S 2020-10-10 21:57:09 +05:30 committed by GitHub
parent f11d7fe992
commit 3bb2d27646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ json.meta do
json.channel conversation.inbox.try(:channel_type)
if conversation.assignee
json.assignee do
json.partial! 'api/v1/models/user.json.jbuilder', resource: conversation.assignee
json.partial! 'api/v1/models/agent.json.jbuilder', resource: conversation.assignee
end
end
end