Skip to content

Commit

Permalink
Prevent duplicate scores for a service #788
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Feb 6, 2023
1 parent 0485b89 commit b0a78cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grails-app/domain/au/org/ala/ecodata/Service.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Service {

static embedded = ['outputs']
List<Score> scores() {
outputs?.collect{it.relatedScores}.unique().flatten()
outputs?.collect{it.relatedScores}.flatten().unique({it.scoreId})
}

Map toMap() {
Expand Down

0 comments on commit b0a78cb

Please sign in to comment.