mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 04:33:16 +03:00
update db sysinfo when sysinfo from console
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
82c70659b8
commit
7912df307a
@ -4733,8 +4733,11 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
||||
}
|
||||
case 'sysinfo': { // Return system information
|
||||
getSystemInformation(function (results, err) {
|
||||
if (results == null) { sendConsoleText(err, this.sessionid); } else {
|
||||
if (results == null) {
|
||||
sendConsoleText(err, this.sessionid);
|
||||
} else {
|
||||
sendConsoleText(JSON.stringify(results, null, 1), this.sessionid);
|
||||
mesh.SendCommand({ action: 'sysinfo', sessionid: this.sessionid, data: results });
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user