users and profiles working
This commit is contained in:
@@ -39,8 +39,10 @@ userDB = (DB) => {
|
||||
console.log(err);
|
||||
return false;
|
||||
});
|
||||
if (r[0]) userProfileCache[r[0].id] = r[0];
|
||||
return r[0];
|
||||
let index = 0;
|
||||
while(r[index].isGroup) index += 1;
|
||||
if (r[index]) userProfileCache[r[index].id] = r[index];
|
||||
return r[index];
|
||||
}
|
||||
|
||||
//Groups
|
||||
|
||||
Reference in New Issue
Block a user