From b792843be7211adfaae8d8bd4cda22d7de425ebc Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Fri, 10 Nov 2023 21:24:16 -0500 Subject: [PATCH] small fix --- backend/controllers/systems.js | 2 +- backend/index.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/controllers/systems.js b/backend/controllers/systems.js index 538793f..515feb0 100644 --- a/backend/controllers/systems.js +++ b/backend/controllers/systems.js @@ -89,7 +89,7 @@ exports.contact_system = async function(req, res) { res.status(500); res.json({ success: false, - message: err + message: "Failed to send" }); return; }); diff --git a/backend/index.js b/backend/index.js index d903b2f..188e359 100644 --- a/backend/index.js +++ b/backend/index.js @@ -283,7 +283,8 @@ io.sockets.on('connection', function (client) { } else if ((data.filterType == "talkgroup") && Array.isArray(data.filterCode)) { clients[client.id].talkgroupNums = data.filterCode; } 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); } else {