Skip to content

Commit

Permalink
use brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Nina Bernick committed Apr 10, 2024
1 parent 0c3d8c8 commit 228097e
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"]}]}}) {
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"]}]}}) {
id
accessionId
accessionName
Expand Down

0 comments on commit 228097e

Please sign in to comment.