From ac70c049d1303245faa0fac1c2bd8d88601b3fde Mon Sep 17 00:00:00 2001 From: Eric Doughty-Papassideris Date: Tue, 26 Nov 2024 15:24:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20back:=20fix=20debug=20mode=20for?= =?UTF-8?q?=20email-pusher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../node/src/core/platform/services/email-pusher/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tdrive/backend/node/src/core/platform/services/email-pusher/index.ts b/tdrive/backend/node/src/core/platform/services/email-pusher/index.ts index dcdc9984..bc4b7413 100644 --- a/tdrive/backend/node/src/core/platform/services/email-pusher/index.ts +++ b/tdrive/backend/node/src/core/platform/services/email-pusher/index.ts @@ -1,4 +1,5 @@ import { getLogger, TdriveLogger, TdriveService } from "../../framework"; +import { getConfigOrDefault } from "../../../../utils/get-config"; import EmailPusherAPI from "./provider"; import { EmailBuilderDataPayload, @@ -42,7 +43,7 @@ export default class EmailPusherClass }); this.interface = this.configuration.get("email_interface", ""); this.platformUrl = this.configuration.get("platform_url", ""); - this.debug = this.configuration.get("debug", false); + this.debug = getConfigOrDefault("email-pusher.debug", true); if (this.interface === "smtp") { const useTLS = this.configuration.get("smtp_tls", "false") == "true"; const smtpConfig: SMTPClientConfigType = {