Skip to content

Commit

Permalink
removed sendmail fuunction use in jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
joywin2003 committed Nov 19, 2024
1 parent 500a831 commit 428aae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jobs/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 428aae9

Please sign in to comment.