chore: Use agent partial instead of user in conversation API (#1333)
This commit is contained in:
@@ -5,7 +5,7 @@ json.meta do
|
|||||||
json.channel conversation.inbox.try(:channel_type)
|
json.channel conversation.inbox.try(:channel_type)
|
||||||
if conversation.assignee
|
if conversation.assignee
|
||||||
json.assignee do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user