dt-common-device 13.4.12 → 13.4.13
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.
|
@@ -90,10 +90,13 @@ let EmailService = (() => {
|
|
|
90
90
|
accessKeyId: process.env.AWS_ACCESS_KEY_ID ?? "",
|
|
91
91
|
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY ?? "",
|
|
92
92
|
};
|
|
93
|
+
console.log("credentials:------", credentials);
|
|
93
94
|
const region = process.env.AWS_REGION ?? "us-east-1";
|
|
94
95
|
this.s3Client = new client_s3_1.S3Client({ credentials, region });
|
|
95
96
|
this.sesClient = new client_ses_1.SESClient({ credentials, region });
|
|
96
97
|
this.propertyService = typedi_1.default.get(Property_service_1.LocalPropertyService);
|
|
98
|
+
console.log("s3Client:------", this.s3Client);
|
|
99
|
+
console.log("sesClient:------", this.sesClient);
|
|
97
100
|
}
|
|
98
101
|
async getTemplateForProperty(fileName, propertyId) {
|
|
99
102
|
let res;
|
|
@@ -272,6 +275,7 @@ let EmailService = (() => {
|
|
|
272
275
|
(0, config_1.getLogger)().info(`Sending email to: ${maskedEmailsList.join(", ")}`);
|
|
273
276
|
}
|
|
274
277
|
catch (error) {
|
|
278
|
+
console.log("error in sendMail:------", error);
|
|
275
279
|
(0, config_1.getLogger)().error("sendMail: Error", JSON.stringify(error));
|
|
276
280
|
}
|
|
277
281
|
}
|