realtime.ts: Minor cleanups

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-05-31 21:40:35 +02:00
parent d2963eedc6
commit 17f3dc1877
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -242,7 +242,6 @@ function getStatus (callback): void {
const distinctaddresses: string[] = []
const regaddresses: string[] = []
const distinctregaddresses: string[] = []
// Object.keys(users).forEach(function (key) {
for (const user of users.values()) {
if (!user) return
let found = false
@ -331,8 +330,6 @@ function buildUserOutData (user): UserSession {
return {
id: user.id,
login: user.login,
address: '',
'user-agent': '',
userid: user.userid,
photo: user.photo,
color: user.color,