From f23e33c1a94f5e42cec4c3efbfc20c797db2e208 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Fri, 17 Nov 2023 16:40:40 -0800 Subject: [PATCH] perf: Remove unwanted conversation count query (#8372) --- app/views/api/v1/models/_contact.json.jbuilder | 1 - 1 file changed, 1 deletion(-) diff --git a/app/views/api/v1/models/_contact.json.jbuilder b/app/views/api/v1/models/_contact.json.jbuilder index 406f9f4fd..6f86ad125 100644 --- a/app/views/api/v1/models/_contact.json.jbuilder +++ b/app/views/api/v1/models/_contact.json.jbuilder @@ -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