commit
49f34210d1
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ namespace :after_party do
|
||||||
dossier = e.dossier
|
dossier = e.dossier
|
||||||
if user.dossiers.count == 1 && user.siret == e.champ.value
|
if user.dossiers.count == 1 && user.siret == e.champ.value
|
||||||
e.update!(dossier_id: nil)
|
e.update!(dossier_id: nil)
|
||||||
dossier.etablissement = e.dup
|
dossier.reload.etablissement = e.reload.dup
|
||||||
dossier.save!
|
dossier.save!
|
||||||
dossiers_modif << dossier.id
|
dossiers_modif << dossier.id
|
||||||
fetch_api_entreprise_infos(dossier.etablissement.id, dossier.procedure.id, user.id)
|
fetch_api_entreprise_infos(dossier.etablissement.id, dossier.procedure.id, user.id)
|
||||||
|
|
Loading…
Reference in a new issue