From b78b790fef742bebc5db98343bcafd56e5b5f4fd Mon Sep 17 00:00:00 2001 From: Alek Perron Date: Mon, 22 Apr 2024 11:00:50 -0400 Subject: [PATCH] fix: SJIP-812 use env variables for index --- src/endpoints/statistics/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/endpoints/statistics/index.ts b/src/endpoints/statistics/index.ts index f1d08c4..adc546b 100644 --- a/src/endpoints/statistics/index.ts +++ b/src/endpoints/statistics/index.ts @@ -225,11 +225,11 @@ export const fetchTranscriptomesStats = async (client: Client): Promise export const fetchDemographicsStats = async (client: Client): Promise[]> => { const response = await client.msearch({ body: [ - { index: 'participant_centric' }, + { index: esParticipantIndex }, { size: 0, aggs: { sex: { terms: { field: 'sex', size: 10 } } } }, - { index: 'participant_centric' }, + { index: esParticipantIndex }, { size: 0, aggs: { down_syndrome_status: { terms: { field: 'down_syndrome_status', size: 10 } } } }, - { index: 'participant_centric' }, + { index: esParticipantIndex }, { size: 0, aggs: { ethnicity: { terms: { field: 'ethnicity', size: 10 } } } }, ], });