mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-02 17:35:57 -05:00
Fix missed break statement
This commit is contained in:
parent
979ad000b4
commit
57e83620ba
@ -5941,7 +5941,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||||||
|
|
||||||
function serverCommandUpdateAgents(command) {
|
function serverCommandUpdateAgents(command) {
|
||||||
// Update agents for selected devices
|
// Update agents for selected devices
|
||||||
if (common.validateStrArray(command.nodeids, 1) == false) break; // Check nodeids
|
if (common.validateStrArray(command.nodeids, 1) == false) return; // Check nodeids
|
||||||
for (var i in command.nodeids) { routeCommandToNode({ action: 'msg', type: 'console', nodeid: command.nodeids[i], value: 'agentupdate' }, MESHRIGHT_ADMIN, 0); }
|
for (var i in command.nodeids) { routeCommandToNode({ action: 'msg', type: 'console', nodeid: command.nodeids[i], value: 'agentupdate' }, MESHRIGHT_ADMIN, 0); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user