Skip to content

Commit

Permalink
feat(api): add BREVO_SELF_ACCOUNT_DELETION_TEMPLATE_ID env
Browse files Browse the repository at this point in the history
  • Loading branch information
er-lim authored Nov 14, 2024
1 parent a75cdb8 commit ced91e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ MAILING_PROVIDER=mailpit
# default: none
# BREVO_TARGET_PROFILE_NOT_CERTIFIABLE_TEMPLATE_ID=

# ID of the template used to notify the user about its account deletion
#
# presence: required only if emailing is enabled and provider is Brevo
# type: Number
# default: none
# BREVO_SELF_ACCOUNT_DELETION_TEMPLATE_ID=


# String for links in emails redirect to a specific domain when user comes from french domain
#
Expand Down
1 change: 1 addition & 0 deletions api/src/shared/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ const configuration = (function () {
organizationInvitationTemplateId: process.env.BREVO_ORGANIZATION_INVITATION_TEMPLATE_ID,
organizationInvitationScoTemplateId: process.env.BREVO_ORGANIZATION_INVITATION_SCO_TEMPLATE_ID,
passwordResetTemplateId: process.env.BREVO_PASSWORD_RESET_TEMPLATE_ID,
selfAccountDeletionTemplateId: process.env.BREVO_SELF_ACCOUNT_DELETION_TEMPLATE_ID,
targetProfileNotCertifiableTemplateId: process.env.BREVO_TARGET_PROFILE_NOT_CERTIFIABLE_TEMPLATE_ID,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const schema = Joi.object({
BREVO_ORGANIZATION_INVITATION_SCO_TEMPLATE_ID: Joi.number().optional(),
BREVO_ORGANIZATION_INVITATION_TEMPLATE_ID: Joi.number().optional(),
BREVO_PASSWORD_RESET_TEMPLATE_ID: Joi.number().optional(),
BREVO_SELF_ACCOUNT_DELETION_TEMPLATE_ID: Joi.number().optional(),
CONTAINER_VERSION: Joi.string().optional(),
CPF_EXPORTS_STORAGE_ACCESS_KEY_ID: Joi.string().optional(),
CPF_EXPORTS_STORAGE_BUCKET_NAME: Joi.string().optional(),
Expand Down

0 comments on commit ced91e5

Please sign in to comment.