From 615ba23e476ecabcf8c673ce88c537fd42394fd2 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 5 Mar 2025 17:31:26 +0700 Subject: [PATCH] fix: list notificatio not filtered deleted --- src/controllers/00-notification-controller.ts | 1 + 1 file changed, 1 insertion(+) 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() }, }, };