services: make etablissement save raise on error
Before, if saving the etablissement failed, the error would be ignored silently.
This commit is contained in:
parent
889bd31de0
commit
7d4c748432
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class ApiEntrepriseService
|
|||
return nil if etablissement_params.empty?
|
||||
|
||||
etablissement = dossier_or_champ.build_etablissement(etablissement_params)
|
||||
etablissement.save
|
||||
etablissement.save!
|
||||
|
||||
[
|
||||
ApiEntreprise::EntrepriseJob, ApiEntreprise::AssociationJob, ApiEntreprise::ExercicesJob,
|
||||
|
|
Loading…
Add table
Reference in a new issue