mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 09:17:30 -05:00
small fix
This commit is contained in:
@@ -89,7 +89,7 @@ exports.contact_system = async function(req, res) {
|
|||||||
res.status(500);
|
res.status(500);
|
||||||
res.json({
|
res.json({
|
||||||
success: false,
|
success: false,
|
||||||
message: err
|
message: "Failed to send"
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -283,7 +283,8 @@ io.sockets.on('connection', function (client) {
|
|||||||
} else if ((data.filterType == "talkgroup") && Array.isArray(data.filterCode)) {
|
} else if ((data.filterType == "talkgroup") && Array.isArray(data.filterCode)) {
|
||||||
clients[client.id].talkgroupNums = data.filterCode;
|
clients[client.id].talkgroupNums = data.filterCode;
|
||||||
} else {
|
} else {
|
||||||
console.error("Invalid Socket Filter - Type: " + data.filterType + " Code: " + data.filterCode);
|
// This is for ALL filters
|
||||||
|
//console.error("Invalid Socket Filter - Type: " + data.filterType + " Code: " + data.filterCode);
|
||||||
}
|
}
|
||||||
//console.log("[" + data.shortName.toLowerCase() + "] WebSocket Updating - Client: " + client.id + " code set to: " + data.filterCode + " type set to: " + data.filterType + " TGS: " + clients[client.id].talkgroupNums);
|
//console.log("[" + data.shortName.toLowerCase() + "] WebSocket Updating - Client: " + client.id + " code set to: " + data.filterCode + " type set to: " + data.filterType + " TGS: " + clients[client.id].talkgroupNums);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user