mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 09:17:30 -05:00
fixing crashes
This commit is contained in:
@@ -292,7 +292,7 @@ exports.get_call = async function (req, res) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} 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.status(404);
|
||||||
res.send(JSON.stringify({
|
res.send(JSON.stringify({
|
||||||
success: false,
|
success: false,
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ exports.shiftStats = async function () {
|
|||||||
tg.totalLen = 0;
|
tg.totalLen = 0;
|
||||||
if (tgHistoryTotal == 0) {
|
if (tgHistoryTotal == 0) {
|
||||||
// there has been no recent activity on this talkgroup. remove it from the stats.
|
// 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