Node.js based forum software built for the modern web
test: fix notification tests
Barış Soner Uşaklıf8a0a7e194b0
diff --git a/src/socket.io/notifications.js b/src/socket.io/notifications.jsindex 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);};