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:
commit
340828c3d3
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ module Maintenance
|
|||
def process(champ)
|
||||
return if champ.etablissement.blank?
|
||||
champ.update!(value_json: APIGeoService.parse_etablissement_address(champ.etablissement))
|
||||
rescue ActiveRecord::RecordInvalid
|
||||
# noop, just a champ without dossier
|
||||
end
|
||||
|
||||
def count
|
||||
|
|
Loading…
Reference in a new issue