mirror of
https://github.com/hexastack/hexabot
synced 2024-11-25 13:27:58 +00:00
18 lines
1.1 KiB
Diff
18 lines
1.1 KiB
Diff
diff --git a/node_modules/@nestjs-modules/mailer/dist/mailer.service.js b/node_modules/@nestjs-modules/mailer/dist/mailer.service.js
|
|
index 016055b..d534240 100644
|
|
--- a/node_modules/@nestjs-modules/mailer/dist/mailer.service.js
|
|
+++ b/node_modules/@nestjs-modules/mailer/dist/mailer.service.js
|
|
@@ -63,9 +63,9 @@ let MailerService = MailerService_1 = class MailerService {
|
|
}
|
|
verifyTransporter(transporter, name) {
|
|
const transporterName = name ? ` '${name}'` : '';
|
|
- transporter.verify()
|
|
- .then(() => this.mailerLogger.error(`Transporter${transporterName} is ready`))
|
|
- .catch((error) => this.mailerLogger.error(`Error occurred while verifying the transporter${transporterName}}: ${error.message}`));
|
|
+ new Promise(()=>transporter?.verify())
|
|
+ .then(() => this.mailerLogger.log(`Transporter${transporterName} is ready`))
|
|
+ .catch((error) => this.mailerLogger.log(`Error occurred while verifying the transporter${transporterName}}: ${error.message}`));
|
|
}
|
|
sendMail(sendMailOptions) {
|
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|