update db sysinfo when sysinfo from console

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-02-22 17:57:12 +00:00
parent 82c70659b8
commit 7912df307a
1 changed files with 4 additions and 1 deletions

View File

@ -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;