Skip to content

Commit

Permalink
fix(api): Parameterise query string for taxon API call.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Mar 22, 2023
1 parent c47b0ba commit d64f046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/api/taxon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export class TaxonApi {
}

getTaxonGenomes(taxon: string, sp_reps_only: boolean) {
return axios.get<string[]>(`${apiBase}/taxon/${encodeURIComponent(taxon)}/genomes?sp_reps_only=${sp_reps_only}`,
return axios.get<string[]>(`${apiBase}/taxon/${encodeURIComponent(taxon)}/genomes`,
{
timeout: apiTimeout,
params: {cacheKey: apiCacheKey}
params: {cacheKey: apiCacheKey, sp_reps_only: sp_reps_only}
})
}

Expand Down

0 comments on commit d64f046

Please sign in to comment.