Skip to content

Commit

Permalink
fix ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Nina Bernick committed Apr 10, 2024
1 parent 228097e commit 0a6d026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resolver-functions/SampleForReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const SampleForReportResolver = async (root, args, context)=> {
if (taxonEntityIds["taxon"].length > 0) {
const taxaQuery = `
query TaxaQuery {
taxa(where: {id: {_in: [${taxonEntityIds["taxon"]}]}}) {
taxa(where: {id: {_in: [${taxonEntityIds["taxon"].map(id => `"${id}"`)}]}}) {
id
name
upstreamDatabaseIdentifier
Expand All @@ -206,7 +206,7 @@ export const SampleForReportResolver = async (root, args, context)=> {
if (taxonEntityIds["accession"].length > 0) {
const accessionQuery = `
query AccessionQuery {
accessions(where: {id: {_in: [${taxonEntityIds["accession"]}]}}) {
accessions(where: {id: {_in: [${taxonEntityIds["accession"].map(id => `"${id}"`)}]}}) {
id
accessionId
accessionName
Expand Down

0 comments on commit 0a6d026

Please sign in to comment.