Skip to content

Commit

Permalink
Always run update routine if old allele_registry_id was _:CA
Browse files Browse the repository at this point in the history
  • Loading branch information
susannasiebert committed Jul 31, 2019
1 parent 1bf06c3 commit 457866e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/update_allele_registry_ids.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def perform(recurring = true)
Variant.where.not(allele_registry_id: nil).each do |v|
old_allele_registry_id = v.allele_registry_id
allele_registry_id = get_allele_registry_id(v)
if allele_registry_id != old_allele_registry_id
if allele_registry_id != old_allele_registry_id || old_allele_registry_id == '_:CA'
if allele_registry_id == '_:CA'
v.allele_registry_id = 'unregistered'
v.save
Expand Down

0 comments on commit 457866e

Please sign in to comment.