From f8a0a7e194b0acd3242c00ec65a598b0de7d6ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 5 Aug 2025 18:00:44 -0400 Subject: [PATCH] test: fix notification tests --- src/socket.io/notifications.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/socket.io/notifications.js b/src/socket.io/notifications.js index c861f6c725..263193260a 100644 --- a/src/socket.io/notifications.js +++ b/src/socket.io/notifications.js @@ -35,7 +35,8 @@ SocketNotifs.markUnread = async function (socket, nid) { }; SocketNotifs.markAllRead = async function (socket, data) { - await notifications.markAllRead(socket.uid, data.filter); + const filter = data && data.filter ? data.filter : ''; + await notifications.markAllRead(socket.uid, filter); user.notifications.pushCount(socket.uid); };