mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
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)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user