diff --git a/server/routes/api/notifications/notifications.ts b/server/routes/api/notifications/notifications.ts index a3811b080a..69317b137d 100644 --- a/server/routes/api/notifications/notifications.ts +++ b/server/routes/api/notifications/notifications.ts @@ -113,10 +113,10 @@ router.post( offset: ctx.state.pagination.offset, limit: ctx.state.pagination.limit, }), - Notification.count({ + Notification.unscoped().count({ where, }), - Notification.count({ + Notification.unscoped().count({ where: { ...where, viewedAt: {