Created connectedUser.js, cleaned activeChannel.js
This commit is contained in:
parent
8384e732f3
commit
68f9d5af06
4 changed files with 109 additions and 55 deletions
|
|
@ -62,11 +62,11 @@ module.exports = class{
|
|||
userDB.flair = data.flair;
|
||||
userDB = await userDB.save();
|
||||
|
||||
chanList.forEach((channel) => {
|
||||
channel.updateFlair(userDB.user, userDB.flair);
|
||||
});
|
||||
|
||||
const connections = this.server.getConnections(socket);
|
||||
|
||||
connections.forEach((conn) => {
|
||||
conn.updateFlair(userDB.flair);
|
||||
});
|
||||
}catch(err){
|
||||
return loggerUtils.socketExceptionHandler(socket, err);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue