diff --git a/app/src/app/api/mailer/assginment/route.ts b/app/src/app/api/mailer/assginment/route.ts index 3dce183..d8321e9 100644 --- a/app/src/app/api/mailer/assginment/route.ts +++ b/app/src/app/api/mailer/assginment/route.ts @@ -124,6 +124,7 @@ export async function POST(req: NextRequest) { const usersEmails = ( await prisma.user.findMany({ + where: { isReceivedMail: true }, select: { email: true, },