hexabot/api/patches/@nestjs-modules+mailer+1.11.2.patch

18 lines
1.1 KiB
Diff
Raw Permalink Normal View History

2024-09-10 09:50:11 +00:00
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* () {