Merge pull request #5198 from betagouv/dev

2020-05-27-02
This commit is contained in:
Paul Chavard 2020-05-27 18:48:14 +02:00 committed by GitHub
commit 49f34210d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ namespace :after_party do
dossier = e.dossier
if user.dossiers.count == 1 && user.siret == e.champ.value
e.update!(dossier_id: nil)
dossier.etablissement = e.dup
dossier.reload.etablissement = e.reload.dup
dossier.save!
dossiers_modif << dossier.id
fetch_api_entreprise_infos(dossier.etablissement.id, dossier.procedure.id, user.id)