From 3bb2d27646e4b987975c400aff3e8275a9acd622 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Sat, 10 Oct 2020 21:57:09 +0530 Subject: [PATCH] chore: Use agent partial instead of user in conversation API (#1333) --- .../api/v1/conversations/partials/_conversation.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/api/v1/conversations/partials/_conversation.json.jbuilder b/app/views/api/v1/conversations/partials/_conversation.json.jbuilder index 8201230fa..729b52379 100644 --- a/app/views/api/v1/conversations/partials/_conversation.json.jbuilder +++ b/app/views/api/v1/conversations/partials/_conversation.json.jbuilder @@ -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