summaryrefslogtreecommitdiff
path: root/src/server/api/common/read-notification.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/common/read-notification.ts')
-rw-r--r--src/server/api/common/read-notification.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/api/common/read-notification.ts b/src/server/api/common/read-notification.ts
index 9bd41519fb..7b9faf4cf4 100644
--- a/src/server/api/common/read-notification.ts
+++ b/src/server/api/common/read-notification.ts
@@ -43,6 +43,8 @@ export default (
.count({
notifieeId: userId,
isRead: false
+ }, {
+ limit: 1
});
if (count == 0) {