fix: wrong notification query condition
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 11s

This commit is contained in:
Methapon2001 2025-03-05 11:55:54 +07:00
parent 1add3f3ba0
commit 3a437d78d4

View file

@ -60,7 +60,7 @@ export class NotificationController extends Controller {
],
NOT: {
readByUser: { some: { id: req.user.sub } },
createdAt: dayjs().subtract(7, "days").toDate(),
createdAt: { lte: dayjs().subtract(7, "days").toDate() },
},
};
const [result, total] = await prisma.$transaction([