From 9a745ddbc5a71a2f65710be9236a1f846c3c7ab7 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Sat, 1 Apr 2023 01:35:55 -0400 Subject: [PATCH] admin --- src/Client.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Client.js b/src/Client.js index 7d83e27..7afce25 100644 --- a/src/Client.js +++ b/src/Client.js @@ -292,12 +292,13 @@ class Client extends EventEmitter { let users = []; let clients = []; this.server.connections.forEach(cl => { + if (!cl.user) return; let c = { ip: cl.ip, - participantId: cl.participantId + participantId: cl.participantId, + userId: cl.user._id }; clients.push(c); - if (!cl.user) return; let u = { p: { _id: cl.user._id,