1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added removedevice command to meshctrl.js (#4753)

This commit is contained in:
Ylian Saint-Hilaire 2022-11-14 16:31:44 -08:00
parent 09bcb739b1
commit 876641f1ac
2 changed files with 41 additions and 26 deletions

View file

@ -2781,6 +2781,10 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
}
});
}
// Send response if required, in this case we always send ok which is not ideal.
if (command.responseid != null) { try { ws.send(JSON.stringify({ action: 'removedevices', responseid: command.responseid, result: 'ok' })); } catch (ex) { } }
break;
}
case 'wakedevices':