Merge pull request #10714 from mfo/US/fix-populate-siret-value-json-missing-dossier

Correctif, ETQ Tech, je souhaite que la tache qui peuple les adresses normalisées des champs siret ne plante pas a cause de bad data sur les champs
This commit is contained in:
mfo 2024-08-26 08:43:18 +00:00 committed by GitHub
commit 340828c3d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,6 +13,8 @@ module Maintenance
def process(champ) def process(champ)
return if champ.etablissement.blank? return if champ.etablissement.blank?
champ.update!(value_json: APIGeoService.parse_etablissement_address(champ.etablissement)) champ.update!(value_json: APIGeoService.parse_etablissement_address(champ.etablissement))
rescue ActiveRecord::RecordInvalid
# noop, just a champ without dossier
end end
def count def count