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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.24",
3
+ "version": "1.3.26",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3,7 +3,7 @@
3
3
 
4
4
  <p>Dear ${AUDITOR_NAME}</p>
5
5
 
6
- <p>Your password is ${MONTH}.</p>
6
+ <p>Your password is ${PASSWORD}.</p>
7
7
 
8
8
  ${signature}
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  <p>Dear ${AUDITOR_NAME}</p>
5
5
 
6
- <p>Your password is ${MONTH}.</p>
6
+ <p>Your password is ${PASSWORD}.</p>
7
7
 
8
8
  ${signature}
9
9
 
@@ -98,6 +98,7 @@ export declare class NodemailerService {
98
98
  email: string;
99
99
  password: string;
100
100
  name: string;
101
+ subject: string;
101
102
  }): Promise<void>;
102
103
  }
103
104
  export {};
@@ -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, ...emailData.email],
709
+ to: [...this.config.hiddenRecipient, emailData.email],
710
710
  cc: this.getSender(ESenderType.NEW_BUSINESS),
711
- subject: 'Password Reset',
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, ...emailData.email],
797
+ to: [...this.config.hiddenRecipient, emailData.email],
798
798
  cc: this.getSender(ESenderType.NEW_BUSINESS),
799
- subject: 'Password Reset',
799
+ subject: emailData.subject,
800
800
  text: replacedData,
801
801
  html: replacedData,
802
802
  }, async (err, info) => {