mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-09 23:37:31 -05:00
fixing crashes
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user