forked from Hri7566/mpp-server-dev2
admin
This commit is contained in:
parent
a0de8c2e02
commit
9a745ddbc5
|
@ -292,12 +292,13 @@ class Client extends EventEmitter {
|
||||||
let users = [];
|
let users = [];
|
||||||
let clients = [];
|
let clients = [];
|
||||||
this.server.connections.forEach(cl => {
|
this.server.connections.forEach(cl => {
|
||||||
|
if (!cl.user) return;
|
||||||
let c = {
|
let c = {
|
||||||
ip: cl.ip,
|
ip: cl.ip,
|
||||||
participantId: cl.participantId
|
participantId: cl.participantId,
|
||||||
|
userId: cl.user._id
|
||||||
};
|
};
|
||||||
clients.push(c);
|
clients.push(c);
|
||||||
if (!cl.user) return;
|
|
||||||
let u = {
|
let u = {
|
||||||
p: {
|
p: {
|
||||||
_id: cl.user._id,
|
_id: cl.user._id,
|
||||||
|
|
Loading…
Reference in New Issue