diff --git a/src/controllers/00-notification-controller.ts b/src/controllers/00-notification-controller.ts index 6b49a76..361c5de 100644 --- a/src/controllers/00-notification-controller.ts +++ b/src/controllers/00-notification-controller.ts @@ -60,6 +60,7 @@ export class NotificationController extends Controller { ], NOT: { readByUser: { some: { id: req.user.sub } }, + deleteByUser: { some: { id: req.user.sub } }, createdAt: { lte: dayjs().subtract(7, "days").toDate() }, }, };