Skip to content

Commit

Permalink
match aliases on name
Browse files Browse the repository at this point in the history
  • Loading branch information
acoffman committed Aug 29, 2023
1 parent cdb032d commit 2c692b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/models/variant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def update_single_variant_mp_aliases
svmp = self.single_variant_molecular_profile
aliases = self.variant_aliases
mp_aliases = aliases.map do |a|
MolecularProfileAlias.where(name: a).first_or_create!
MolecularProfileAlias.where(name: a.name).first_or_create!
end

svmp.molecular_profile_aliases = mp_aliases
Expand Down

0 comments on commit 2c692b9

Please sign in to comment.