🐛 back: fix debug mode for email-pusher

This commit is contained in:
Eric Doughty-Papassideris
2024-11-26 15:24:38 +01:00
parent 88c73df407
commit ac70c049d1
@@ -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<string>("email_interface", "");
this.platformUrl = this.configuration.get<string>("platform_url", "");
this.debug = this.configuration.get<boolean>("debug", false);
this.debug = getConfigOrDefault<boolean>("email-pusher.debug", true);
if (this.interface === "smtp") {
const useTLS = this.configuration.get<string>("smtp_tls", "false") == "true";
const smtpConfig: SMTPClientConfigType = {