fix: update inbox details for text search json

This commit is contained in:
Tejaswini Chile 2022-12-19 13:35:53 +05:30
parent 87eb798d7c
commit 3447b56b18

View file

@ -21,7 +21,13 @@ json.payload do
json.partial! 'api/v1/models/agent', formats: [:json], resource: message.conversation.assignee if message.conversation.assignee.present?
end
json.inbox do
json.partial! 'api/v1/models/inbox', formats: [:json], resource: message.inbox if message.inbox.present?
if message.inbox.present?
inbox = message.inbox
json.id inbox.id
json.channel_id inbox.channel_id
json.name inbox.name
json.channel_type inbox.channel_type
end
end
end
end