update db sysinfo when sysinfo from console
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Feb 22, 2024 at 17:57 UTC
7912df307a2c27c017f61b377d1d9cbb952df336
1 file changed
+4
-1
agents/meshcore.js
+4
-1
@@ -4733,8 +4733,11 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
4733
}
4734
case 'sysinfo': { // Return system information
4735
getSystemInformation(function (results, err) {
4736
- if (results == null) { sendConsoleText(err, this.sessionid); } else {
4736
+ if (results == null) {
4737
+ sendConsoleText(err, this.sessionid);
4738
+ } else {
4739
sendConsoleText(JSON.stringify(results, null, 1), this.sessionid);
4740
+ mesh.SendCommand({ action: 'sysinfo', sessionid: this.sessionid, data: results });
4741
}
4742
});
4743
break;