From 9ee43d8b3eaac988276ee35efad80beb556f7bc6 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 27 Apr 2022 18:10:49 +0200 Subject: [PATCH] devops: Disable send email on Seeding --- backend/src/seeds/index.ts | 3 +++ deployment/bare_metal/.env.dist | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/seeds/index.ts b/backend/src/seeds/index.ts index 37c9992a7..2133c2663 100644 --- a/backend/src/seeds/index.ts +++ b/backend/src/seeds/index.ts @@ -13,6 +13,9 @@ import { userFactory } from './factory/user' import { creationFactory } from './factory/creation' import { transactionLinkFactory } from './factory/transactionLink' import { entities } from '@entity/index' +import CONFIG from '@/config' + +CONFIG.EMAIL = false const context = { token: '', diff --git a/deployment/bare_metal/.env.dist b/deployment/bare_metal/.env.dist index a7e266bdf..a1751a859 100644 --- a/deployment/bare_metal/.env.dist +++ b/deployment/bare_metal/.env.dist @@ -38,7 +38,7 @@ KLICKTIPP_PASSWORD= KLICKTIPP_APIKEY_DE= KLICKTIPP_APIKEY_EN= -EMAIL=false +EMAIL=true EMAIL_USERNAME=peter@lustig.de EMAIL_SENDER=peter@lustig.de EMAIL_PASSWORD=1234