mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
update db sysinfo when sysinfo from console
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
82c70659b8
commit
7912df307a
1 changed files with 4 additions and 1 deletions
|
@ -4733,8 +4733,11 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
|
||||||
}
|
}
|
||||||
case 'sysinfo': { // Return system information
|
case 'sysinfo': { // Return system information
|
||||||
getSystemInformation(function (results, err) {
|
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);
|
sendConsoleText(JSON.stringify(results, null, 1), this.sessionid);
|
||||||
|
mesh.SendCommand({ action: 'sysinfo', sessionid: this.sessionid, data: results });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue