feat(perf): Cache labels on the conversation model (#8527)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
json.meta do
|
||||
json.labels @conversation.label_list
|
||||
json.labels @conversation.cached_label_list_array
|
||||
json.additional_attributes @conversation.additional_attributes
|
||||
json.contact @conversation.contact.push_event_data
|
||||
json.assignee @conversation.assignee.push_event_data if @conversation.assignee.present?
|
||||
|
||||
@@ -35,7 +35,7 @@ json.can_reply conversation.can_reply?
|
||||
json.contact_last_seen_at conversation.contact_last_seen_at.to_i
|
||||
json.custom_attributes conversation.custom_attributes
|
||||
json.inbox_id conversation.inbox_id
|
||||
json.labels conversation.label_list
|
||||
json.labels conversation.cached_label_list_array
|
||||
json.muted conversation.muted?
|
||||
json.snoozed_until conversation.snoozed_until
|
||||
json.status conversation.status
|
||||
|
||||
Reference in New Issue
Block a user