highLevel syncs across chans, shows in userlist

This commit is contained in:
rainbow napkin 2024-12-03 20:27:37 -05:00
parent 279640a7e7
commit 8ccb9003cc
8 changed files with 102 additions and 38 deletions

View file

@ -39,7 +39,7 @@ module.exports = class{
userObj.sockets.push(socket.id);
}else{
await userDB.populate('flair');
userObj = new connectedUser(userDB.user, userDB.id, userDB.rank, chanRank, userDB.flair.name, this, socket);
userObj = new connectedUser(userDB, chanRank, this, socket);
}
//Set user entry in userlist
@ -84,7 +84,8 @@ module.exports = class{
this.userList.forEach((userObj, user) => {
userList.push({
user: user,
flair: userObj.flair
flair: userObj.flair,
highLevel: userObj.highLevel
});
});