Merge pull request #10704 from mfo/US/fix-populate-rna-maintenance-task
Correctif: tache de maintenance des données RNA pour permettre la recherche
This commit is contained in:
commit
4c1e67bd65
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ module Maintenance
|
||||||
data = APIEntreprise::RNAAdapter.new(champ.value, champ&.dossier&.procedure&.id).to_params
|
data = APIEntreprise::RNAAdapter.new(champ.value, champ&.dossier&.procedure&.id).to_params
|
||||||
return if data.blank?
|
return if data.blank?
|
||||||
champ.update(value_json: APIGeoService.parse_rna_address(data['adresse']))
|
champ.update(value_json: APIGeoService.parse_rna_address(data['adresse']))
|
||||||
|
rescue URI::InvalidURIError
|
||||||
|
# some data raise this error
|
||||||
end
|
end
|
||||||
|
|
||||||
def count
|
def count
|
||||||
|
|
Loading…
Reference in a new issue