minor fix

This commit is contained in:
daniel31x13
2025-10-13 17:28:35 -04:00
parent 4148c0f5fb
commit 6ae4c37d0c

View File

@@ -43,6 +43,9 @@ export async function trialEndEmailWorker() {
const candidates = await prisma.user.findMany({
where: {
trialEndEmailSent: false,
emailVerified: {
not: null,
},
createdAt: { lte: cutoff, gte: new Date("2025-09-25") }, // safety upper bound to avoid processing old users
},
orderBy: { createdAt: "asc" },