perf: Remove unwanted conversation count query (#8372)

This commit is contained in:
Sojan Jose
2023-11-17 16:40:40 -08:00
committed by GitHub
parent 5588d6e344
commit f23e33c1a9

View File

@@ -7,7 +7,6 @@ json.phone_number resource.phone_number
json.identifier resource.identifier
json.thumbnail resource.avatar_url
json.custom_attributes resource.custom_attributes
json.conversations_count resource.conversations_count if resource[:conversations_count].present?
json.last_activity_at resource.last_activity_at.to_i if resource[:last_activity_at].present?
json.created_at resource.created_at.to_i if resource[:created_at].present?
# we only want to output contact inbox when its /contacts endpoints