Skip to content

Commit

Permalink
#384 fix for getTaxa
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Collins committed Apr 12, 2024
1 parent f5e806e commit 5f7fbb2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions grails-app/services/au/org/ala/bie/SearchService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -628,12 +628,12 @@ class SearchService {
def batch = guidList.take(BULK_BATCH_SIZE)
def batchSet = (batch.findAll { !resultMap.containsKey(it) }) as Set
def matches = getTaxaBatch(batchSet)
if (!matches) // Error return
return null
matches.each { match ->
resultMap[match.guid] = match
if (match.linkIdentifier)
resultMap[match.linkIdentifier] = match
if (matches) {
matches.each { match ->
resultMap[match.guid] = match
if (match.linkIdentifier)
resultMap[match.linkIdentifier] = match
}
}
batch.each { guid ->
matchingTaxa << resultMap[guid]
Expand Down

0 comments on commit 5f7fbb2

Please sign in to comment.