Merge pull request #5475 from betagouv/api-entreprise-raise
Sauvegarder un établissement invalide remonte maintenant une erreur
This commit is contained in:
commit
31dfdbf993
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…
Reference in a new issue