gemcap-be-common 1.3.29 → 1.3.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -707,7 +707,7 @@ class NodemailerService {
|
|
|
707
707
|
this.transporter.sendMail({
|
|
708
708
|
from: this.getSender(ESenderType.NEW_BUSINESS),
|
|
709
709
|
to: [...this.config.hiddenRecipient, replacements.email],
|
|
710
|
-
cc: this.getSender(ESenderType.NEW_BUSINESS, `: ${replacements.prospectName}`),
|
|
710
|
+
cc: this.getSender(ESenderType.NEW_BUSINESS, replacements.prospectName ? `: ${replacements.prospectName}` : undefined),
|
|
711
711
|
subject: replacements.subject,
|
|
712
712
|
text: replacedData,
|
|
713
713
|
html: replacedData,
|
|
@@ -793,7 +793,7 @@ export class NodemailerService {
|
|
|
793
793
|
password: string;
|
|
794
794
|
name: string;
|
|
795
795
|
subject: string,
|
|
796
|
-
prospectName
|
|
796
|
+
prospectName?: string,
|
|
797
797
|
}) {
|
|
798
798
|
const textPath = path.resolve(__dirname, '../public/emails', 'auditor-reset.html');
|
|
799
799
|
const text = await fs.promises.readFile(textPath, 'utf8');
|
|
@@ -806,7 +806,7 @@ export class NodemailerService {
|
|
|
806
806
|
this.transporter.sendMail({
|
|
807
807
|
from: this.getSender(ESenderType.NEW_BUSINESS),
|
|
808
808
|
to: [...this.config.hiddenRecipient, replacements.email],
|
|
809
|
-
cc: this.getSender(ESenderType.NEW_BUSINESS, `: ${replacements.prospectName}`),
|
|
809
|
+
cc: this.getSender(ESenderType.NEW_BUSINESS, replacements.prospectName ? `: ${replacements.prospectName}` : undefined),
|
|
810
810
|
subject: replacements.subject,
|
|
811
811
|
text: replacedData,
|
|
812
812
|
html: replacedData,
|