gemcap-be-common 1.3.24 → 1.3.26
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
|
@@ -706,9 +706,9 @@ class NodemailerService {
|
|
|
706
706
|
try {
|
|
707
707
|
this.transporter.sendMail({
|
|
708
708
|
from: this.getSender(ESenderType.NEW_BUSINESS),
|
|
709
|
-
to: [...this.config.hiddenRecipient,
|
|
709
|
+
to: [...this.config.hiddenRecipient, emailData.email],
|
|
710
710
|
cc: this.getSender(ESenderType.NEW_BUSINESS),
|
|
711
|
-
subject:
|
|
711
|
+
subject: emailData.subject,
|
|
712
712
|
text: replacedData,
|
|
713
713
|
html: replacedData,
|
|
714
714
|
}, async (err, info) => {
|
|
@@ -783,7 +783,7 @@ export class NodemailerService {
|
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
785
|
|
|
786
|
-
async sendAuditorResetPasswordEmail(emailData: { email: string; password: string; name: string; }) {
|
|
786
|
+
async sendAuditorResetPasswordEmail(emailData: { email: string; password: string; name: string; subject: string }) {
|
|
787
787
|
const textPath = path.resolve(__dirname, '../public/emails', 'auditor-reset.html');
|
|
788
788
|
const text = await fs.promises.readFile(textPath, 'utf8');
|
|
789
789
|
const signature = await this.getSignatureAsync(ESenderType.NEW_BUSINESS);
|
|
@@ -794,9 +794,9 @@ export class NodemailerService {
|
|
|
794
794
|
try {
|
|
795
795
|
this.transporter.sendMail({
|
|
796
796
|
from: this.getSender(ESenderType.NEW_BUSINESS),
|
|
797
|
-
to: [...this.config.hiddenRecipient,
|
|
797
|
+
to: [...this.config.hiddenRecipient, emailData.email],
|
|
798
798
|
cc: this.getSender(ESenderType.NEW_BUSINESS),
|
|
799
|
-
subject:
|
|
799
|
+
subject: emailData.subject,
|
|
800
800
|
text: replacedData,
|
|
801
801
|
html: replacedData,
|
|
802
802
|
}, async (err, info) => {
|