feat(ApiEntreprise.recipient): always use SIRET of dinum

Update config/env.example

Co-authored-by: LeSim <mail@simon.lehericey.net>
This commit is contained in:
Martin 2022-04-25 15:50:33 +02:00 committed by mfo
parent fbfd08a764
commit 55d77e33ed
2 changed files with 4 additions and 1 deletions

View file

@ -120,7 +120,7 @@ class APIEntreprise::API
# rubocop:disable DS/ApplicationName
params = {
context: "demarches-simplifiees.fr",
recipient: siret_or_siren,
recipient: ENV.fetch('API_ENTREPRISE_DEFAULT_SIRET'),
object: "procedure_id: #{procedure_id}",
non_diffusables: true
}

View file

@ -157,3 +157,6 @@ INVISIBLE_CAPTCHA_SECRET="kikooloool"
# Clamav antivirus usage
CLAMAV_ENABLED="disabled"
# Siret number used for API Entreprise, by default we use SIRET from dinum
API_ENTREPRISE_DEFAULT_SIRET="put_your_own_siret"