diff --git a/backend/src/utils/sendEmail.utils.ts b/backend/src/utils/sendEmail.utils.ts index 45393e7..e6e2034 100644 --- a/backend/src/utils/sendEmail.utils.ts +++ b/backend/src/utils/sendEmail.utils.ts @@ -1,13 +1,13 @@ +import os from "node:os"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { promisify } from "node:util"; import type { Transporter } from "nodemailer"; import nodemailer from "nodemailer"; import type Mail from "nodemailer/lib/mailer/index.js"; import type { Address } from "nodemailer/lib/mailer/index.js"; import type SMTPTransport from "nodemailer/lib/smtp-transport/index.js"; import hbs from "nodemailer-express-handlebars"; -import os from "os"; -import path from "path"; -import { fileURLToPath } from "url"; -import { promisify } from "util"; import { returnFunc } from "./returnHelper.utils.js"; import { tryCatch } from "./trycatch.utils.js"; diff --git a/tests/examplequery.test.ts b/tests/examplequery.test.ts index 8ad85d9..49bbf17 100644 --- a/tests/examplequery.test.ts +++ b/tests/examplequery.test.ts @@ -12,7 +12,7 @@ describe("Prod SQL connection", () => { }); afterAll(async () => { - if (pool && pool.close) await pool.close(); + if (pool?.close) await pool.close(); }); it("should connect and return expected data", async () => {