From d959b4b42750613343a23fb0e09d3b52795b643c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guillois?= Date: Thu, 3 Oct 2024 15:02:24 +0200 Subject: [PATCH] refactor: remove unused cerema configuration --- server/.env.example | 3 --- server/src/infra/config.ts | 19 ------------------- 2 files changed, 22 deletions(-) diff --git a/server/.env.example b/server/.env.example index 551645e7c..9136969a7 100644 --- a/server/.env.example +++ b/server/.env.example @@ -20,9 +20,6 @@ CEREMA_ENABLED=true CEREMA_API=https://portaildf.cerema.fr CEREMA_USERNAME=username CEREMA_PASSWORD=password -CEREMA_INVITE_LIMIT=10 -CEREMA_DRY_MODE=true -CEREMA_FORCE_INVITE=false S3_ENDPOINT= S3_REGION=any diff --git a/server/src/infra/config.ts b/server/src/infra/config.ts index 7d7e7cde3..6d99a71b5 100644 --- a/server/src/infra/config.ts +++ b/server/src/infra/config.ts @@ -56,11 +56,8 @@ interface Config { cerema: { api: string; enabled: boolean; - dryMode: boolean; username: string; password: string; - inviteLimit: number; - forceInvite: boolean; }; datafoncier: { api: string; @@ -199,11 +196,6 @@ const config = convict({ format: 'strict-boolean', default: isProduction }, - dryMode: { - env: 'CEREMA_DRY_MODE', - format: 'strict-boolean', - default: !isProduction - }, api: { env: 'CEREMA_API', format: 'url', @@ -223,17 +215,6 @@ const config = convict({ default: null, nullable: !isProduction }, - inviteLimit: { - env: 'CEREMA_INVITE_LIMIT', - format: 'int', - default: 10 - }, - forceInvite: { - env: 'CEREMA_FORCE_INVITE', - format: Boolean, - default: false, - nullable: !isProduction - } }, datafoncier: { api: {