From 57e83620baa8b92f2b5f5a256f00efffca32d185 Mon Sep 17 00:00:00 2001 From: Noah Zalev Date: Mon, 10 Jan 2022 17:57:57 -0500 Subject: [PATCH] Fix missed break statement --- meshuser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshuser.js b/meshuser.js index b225d29f..f2842d90 100644 --- a/meshuser.js +++ b/meshuser.js @@ -5941,7 +5941,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use function serverCommandUpdateAgents(command) { // 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); } }