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:
authored and GitHub committed 2023-05-02 12:58:47 +00:00
1 parent 83d5176ddb
commit 28dcf69d18
1 file changed
+3 -4
+3 -4
View File
@@ -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);