mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-10 05:59:40 -05:00
More device session notification work.
This commit is contained in:
@@ -586,6 +586,10 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
||||
if (docs[i].userloc != null) { delete docs[i].userloc; }
|
||||
}
|
||||
|
||||
// Add device sessions
|
||||
const xagent = parent.wsagents[docs[i]._id];
|
||||
if ((xagent != null) && (xagent.sessions != null)) { docs[i].sessions = xagent.sessions; }
|
||||
|
||||
r[meshid].push(docs[i]);
|
||||
}
|
||||
try { ws.send(JSON.stringify({ action: 'nodes', responseid: command.responseid, nodes: r, tag: command.tag })); } catch (ex) { }
|
||||
|
||||
Reference in New Issue
Block a user