Fix missed break statement

Noah Zalev committed Jan 10, 2022 at 17:57 UTC 57e83620baa8b92f2b5f5a256f00efffca32d185
1 file changed +1 -1
meshuser.js
+1 -1
@@ -5941,7 +5941,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
5941
5942 function serverCommandUpdateAgents(command) {
5943 // Update agents for selected devices
5944 - if (common.validateStrArray(command.nodeids, 1) == false) break; // Check nodeids
5944 + if (common.validateStrArray(command.nodeids, 1) == false) return; // Check nodeids
5945 for (var i in command.nodeids) { routeCommandToNode({ action: 'msg', type: 'console', nodeid: command.nodeids[i], value: 'agentupdate' }, MESHRIGHT_ADMIN, 0); }
5946 }
5947