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:
Colin Darie 2024-08-21 15:45:18 +00:00 committed by GitHub
commit 4c1e67bd65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,6 +15,8 @@ module Maintenance
data = APIEntreprise::RNAAdapter.new(champ.value, champ&.dossier&.procedure&.id).to_params
return if data.blank?
champ.update(value_json: APIGeoService.parse_rna_address(data['adresse']))
rescue URI::InvalidURIError
# some data raise this error
end
def count