Merge pull request #1966 from betagouv/api-entreprise
Simplify ApiEntrepriseService even further
This commit is contained in:
commit
b60c3b551b
1 changed files with 1 additions and 3 deletions
|
@ -7,12 +7,10 @@ class ApiEntrepriseService
|
|||
association_params = ApiEntreprise::RNAAdapter.new(siret, procedure_id).to_params
|
||||
exercices_params = ApiEntreprise::ExercicesAdapter.new(siret, procedure_id).to_params
|
||||
|
||||
params = etablissement_params
|
||||
etablissement_params
|
||||
.merge(entreprise_params)
|
||||
.merge(association_params)
|
||||
.merge(exercices_params)
|
||||
|
||||
params
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue