fixing crashes

This commit is contained in:
Luke Berndt
2023-05-09 21:04:43 -04:00
parent a813dc21e8
commit d359f5faae
2 changed files with 2 additions and 2 deletions

View File

@@ -292,7 +292,7 @@ exports.get_call = async function (req, res) {
);
} else {
console.warn("[" + req.params.shortName + "] Error - /:shortName/call/:id Could not find item " + err + " ID: " + objectId);
console.warn("[" + req.params.shortName + "] Error - /:shortName/call/:id Could not find item ID: " + objectId);
res.status(404);
res.send(JSON.stringify({
success: false,

View File

@@ -237,7 +237,7 @@ exports.shiftStats = async function () {
tg.totalLen = 0;
if (tgHistoryTotal == 0) {
// there has been no recent activity on this talkgroup. remove it from the stats.
delete stat[talkgroupNum];
delete sysTalkgroupStats[talkgroupNum];
}
}
}