Skip to content

Commit

Permalink
clients: Minor code style fixes in opencga-client when creating the s…
Browse files Browse the repository at this point in the history
…ession #TASK-7272
  • Loading branch information
jmjuanes committed Dec 11, 2024
1 parent 34fb255 commit 04c2291
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/clients/opencga/opencga-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,13 @@ export class OpenCGAClient {
// Fetch all the cohort
console.log("Fetching cohorts");
const cohortsResponse = await _this.cohorts()
.search({study: study.fqn, exclude: "samples", limit: 100});
.search({
study: study.fqn,
exclude: "samples",
limit: 100,
});
study.cohorts = cohortsResponse.responses[0].results
.filter(cohort => !cohort.attributes?.IVA?.ignore);
// FIXME line above should check cohort.internal instead
// .filter(cohort => cohort.internal.index?.status === "READY");

// Keep track of the studies to fetch Disease Panels
studies.push(study.fqn);
Expand Down

0 comments on commit 04c2291

Please sign in to comment.