Skip to content

Commit

Permalink
chore(connectors): remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Sep 17, 2024
1 parent 92c37ab commit 04945a8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 89 deletions.
3 changes: 0 additions & 3 deletions src/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export const {
MAGIC_LINK_TOKEN_EXPIRATION_DURATION_IN_MINUTES,
MAX_DURATION_BETWEEN_TWO_EMAIL_ADDRESS_VERIFICATION_IN_MINUTES,
MAX_SUGGESTED_ORGANIZATIONS,
MODERATION_TAG,
MONCOMPTEPRO_HOST,
MONCOMPTEPRO_LABEL,
NODE_ENV,
Expand All @@ -75,8 +74,6 @@ export const {
TEST_CONTACT_EMAIL,
TRUSTED_BROWSER_COOKIE_MAX_AGE_IN_SECONDS,
VERIFY_EMAIL_TOKEN_EXPIRATION_DURATION_IN_MINUTES,
ZAMMAD_TOKEN,
ZAMMAD_URL,
} = parsedEnv.data;

export const MONCOMPTEPRO_IDENTIFIER = new URL(MONCOMPTEPRO_HOST).hostname;
3 changes: 0 additions & 3 deletions src/config/env.zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { defaultJWKS } from "./default-jwks";
export const emailEnvSchema = z.object({
BREVO_API_KEY: z.string().optional(),
DO_NOT_SEND_MAIL: zodTrueFalseBoolean().default("True"),
ZAMMAD_TOKEN: z.string().optional(),
ZAMMAD_URL: z.string().url().default("https://support.etalab.gouv.fr"),
});

export const connectorEnvSchema = z.object({
Expand Down Expand Up @@ -83,7 +81,6 @@ export const paramsEnvSchema = z.object({
.nonnegative()
.default(3 * 30 * 24 * 60), // 3 months in minutes
MAX_SUGGESTED_ORGANIZATIONS: z.coerce.number().int().nonnegative().default(3),
MODERATION_TAG: z.string().default("github-action-e2e-test"),
MONCOMPTEPRO_HOST: z.string().url().default("http://localhost:3000"),
MONCOMPTEPRO_LABEL: z.string().default("MonComptePro"),
NODE_ENV: z
Expand Down
81 changes: 0 additions & 81 deletions src/connectors/send-zammad-mail.ts

This file was deleted.

2 changes: 0 additions & 2 deletions test/env.zod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ test("default sample env with configured INSEE secrets", () => {
MAGIC_LINK_TOKEN_EXPIRATION_DURATION_IN_MINUTES: 60,
MAX_DURATION_BETWEEN_TWO_EMAIL_ADDRESS_VERIFICATION_IN_MINUTES: 129600,
MAX_SUGGESTED_ORGANIZATIONS: 3,
MODERATION_TAG: "github-action-e2e-test",
MONCOMPTEPRO_HOST: "http://localhost:3000",
MONCOMPTEPRO_LABEL: "MonComptePro",
NODE_ENV: "development",
Expand All @@ -67,6 +66,5 @@ test("default sample env with configured INSEE secrets", () => {
TEST_CONTACT_EMAIL: "[email protected]",
TRUSTED_BROWSER_COOKIE_MAX_AGE_IN_SECONDS: 7776000,
VERIFY_EMAIL_TOKEN_EXPIRATION_DURATION_IN_MINUTES: 60,
ZAMMAD_URL: "https://support.etalab.gouv.fr",
});
});

0 comments on commit 04945a8

Please sign in to comment.