Created connectedUser.js, cleaned activeChannel.js

This commit is contained in:
rainbow napkin 2024-11-23 15:01:26 -05:00
parent 8384e732f3
commit 68f9d5af06
4 changed files with 109 additions and 55 deletions

View file

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