Everything looks like it is workings with the upgraded backend

This commit is contained in:
Luke Berndt
2023-04-09 22:39:00 -04:00
parent ef9eb0a89a
commit fd779e91da
7 changed files with 63 additions and 73 deletions

View File

@@ -71,12 +71,14 @@ exports.listSystems = async function (req, res, next) {
for (var i = 0; i < stats.length; i++) {
sys_stats[stats[i].shortName] = {};
sys_stats[stats[i].shortName].callTotals = stats[i].callTotals;
sys_stats[stats[i].shortName].uploadErrors = stats[i].uploadErrors;
sys_stats[stats[i].shortName]["uploadErrors"] = stats[i].uploadErrors;
sys_stats[stats[i].shortName]["callTotals"] = stats[i].callTotals;
sys_stats[stats[i].shortName].talkgroupStats= stats[i].talkgroupStats;
sys_stats[stats[i].shortName].decodeErrorsFreq = stats[i].decodeErrorsFreq;
}
console.log(sys_stats["test"]);
res.json({
success: true,
systems: returnSys,