fix: update inbox details for text search json
This commit is contained in:
parent
87eb798d7c
commit
3447b56b18
1 changed files with 7 additions and 1 deletions
|
@ -21,7 +21,13 @@ json.payload do
|
||||||
json.partial! 'api/v1/models/agent', formats: [:json], resource: message.conversation.assignee if message.conversation.assignee.present?
|
json.partial! 'api/v1/models/agent', formats: [:json], resource: message.conversation.assignee if message.conversation.assignee.present?
|
||||||
end
|
end
|
||||||
json.inbox do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue