mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: fix notification tests
This commit is contained in:
@@ -35,7 +35,8 @@ SocketNotifs.markUnread = async function (socket, nid) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
SocketNotifs.markAllRead = async function (socket, data) {
|
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);
|
user.notifications.pushCount(socket.uid);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user