mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 23:40:38 +01:00
refactor: topic creation to use api lib
This commit is contained in:
@@ -191,7 +191,7 @@ SocketHelpers.rescindUpvoteNotification = async function (pid, fromuid) {
|
||||
websockets.in('uid_' + uid).emit('event:notifications.updateCount', count);
|
||||
};
|
||||
|
||||
SocketHelpers.emitToTopicAndCategory = async function (event, data, uids) {
|
||||
SocketHelpers.emitToUids = async function (event, data, uids) {
|
||||
uids.forEach(toUid => websockets.in('uid_' + toUid).emit(event, data));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user