From 428aae97d275f9614516039ff28cdb28da2f37ab Mon Sep 17 00:00:00 2001 From: Joywin Bennis <107112207+joywin2003@users.noreply.github.com> Date: Tue, 19 Nov 2024 22:48:39 +0530 Subject: [PATCH] removed sendmail fuunction use in jobs --- src/jobs/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jobs/index.ts b/src/jobs/index.ts index 8456799..0e2da65 100644 --- a/src/jobs/index.ts +++ b/src/jobs/index.ts @@ -1,6 +1,6 @@ import { Queue, Worker } from "bullmq"; import { Redis } from "ioredis"; -import sendEmail from "@/lib/sendMail"; +// import sendEmail from "@/lib/sendMail"; const redisConnection = new Redis({ host: process.env.REDIS_HOST, @@ -40,7 +40,7 @@ const worker = new Worker( if (!email) { throw new Error("No recipients defined"); } - await sendEmail({ email, name, OTP }); + // await sendEmail({ email, name, OTP }); }, { connection: redisConnection,