diff --git a/src/controllers/00-notification-controller.ts b/src/controllers/00-notification-controller.ts index 00baff7..a2034de 100644 --- a/src/controllers/00-notification-controller.ts +++ b/src/controllers/00-notification-controller.ts @@ -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([