Skip to content

Commit

Permalink
fix: SJIP-812 use env variables for index
Browse files Browse the repository at this point in the history
  • Loading branch information
aperron-ferlab committed Apr 22, 2024
1 parent 7ef5b29 commit b78b790
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/endpoints/statistics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ export const fetchTranscriptomesStats = async (client: Client): Promise<number>
export const fetchDemographicsStats = async (client: Client): Promise<Record<string, number>[]> => {
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 } } } },
],
});
Expand Down

0 comments on commit b78b790

Please sign in to comment.