Skip to content

Commit

Permalink
Add distinct clause on EID browse
Browse files Browse the repository at this point in the history
Fixes duplicate EIDs when joining to therapies
  • Loading branch information
acoffman authored Feb 5, 2024
1 parent 18fd79c commit 11345d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/app/graphql/resolvers/top_level_evidence_items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Resolvers::TopLevelEvidenceItems < GraphQL::Schema::Resolver
.all
.order("evidence_level ASC, rating DESC, id ASC")
.where.not(status: 'rejected')
.distinct
}

option(:id, type: GraphQL::Types::Int, description: 'Exact match filtering on the ID of the evidence item.') do |scope, value|
Expand Down

0 comments on commit 11345d7

Please sign in to comment.