mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 09:13:21 +03:00
fix: Socket bug fixes and improvements
This commit is contained in:
@@ -59,6 +59,10 @@ module.exports = function defineCurrentUserHook(sails) {
|
||||
accessToken,
|
||||
currentUser,
|
||||
});
|
||||
|
||||
if (req.isSocket) {
|
||||
sails.sockets.join(req, `@user:${currentUser.id}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user