From d387ee265dd47b73ae2545b465b2dffa57679b50 Mon Sep 17 00:00:00 2001 From: Alek Perron Date: Fri, 27 Sep 2024 15:26:43 -0400 Subject: [PATCH] fix: SKFP-1281 adjust to use sum --- src/endpoints/statistics/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/statistics/index.ts b/src/endpoints/statistics/index.ts index f171d9e..9160874 100644 --- a/src/endpoints/statistics/index.ts +++ b/src/endpoints/statistics/index.ts @@ -76,7 +76,7 @@ const fetchFamilyStats = async (client: Client): Promise => { const { body } = await client.search({ index: esStudyIndex, body: { - aggs: { types_count: { value_count: { field: familyCountKey } } }, + aggs: { types_count: { sum: { field: familyCountKey } } }, }, size: 0, });