test: fix notification tests

This commit is contained in:
Barış Soner Uşaklı
2025-08-05 18:00:44 -04:00
parent 9d39ed512f
commit f8a0a7e194

View File

@@ -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);
};