use named imports instead to avoid polluting the global namespace. in… (#8616)
* use named imports instead to avoid polluting the global namespace. in nodemailer * Update packages/emails/templates/_base-email.ts Lint fix. * Revert yarn.lock changes --------- Co-authored-by: alannnc <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 file changed
+3
-4
@@ -1,5 +1,5 @@
|
||||
import { decodeHTML } from "entities";
|
||||
import nodemailer from "nodemailer";
|
||||
import { createTransport } from "nodemailer";
|
||||
import { z } from "zod";
|
||||
|
||||
import type { Dayjs } from "@calcom/dayjs";
|
||||
@@ -52,9 +52,8 @@ export default class BaseEmail {
|
||||
...(parseSubject.success && { subject: decodeHTML(parseSubject.data) }),
|
||||
};
|
||||
|
||||
new Promise((resolve, reject) =>
|
||||
nodemailer
|
||||
.createTransport(this.getMailerOptions().transport)
|
||||
new Promise((resolve, reject) =>
|
||||
createTransport(this.getMailerOptions().transport)
|
||||
.sendMail(payloadWithUnEscapedSubject, (_err, info) => {
|
||||
if (_err) {
|
||||
const err = getErrorFromUnknown(_err);
|
||||
|
||||
Reference in new issue
Block a user