diff --git a/Server/utilities/mysqlHandler.js b/Server/utilities/mysqlHandler.js index a4a3e3b..e0cfa3c 100644 --- a/Server/utilities/mysqlHandler.js +++ b/Server/utilities/mysqlHandler.js @@ -137,9 +137,8 @@ exports.addNewNode = async (nodeObject, callback) => { port = nodeObject.port, location = nodeObject.location, nearbySystems = utils.JsonToBuffer(nodeObject.nearbySystems), - online = nodeObject.online, - connected = 0; - const sqlQuery = `INSERT INTO ${nodesTable} (name, ip, port, location, nearbySystems, online, connected) VALUES ('${name}', '${ip}', ${port}, '${location}', '${nearbySystems}', ${online}, ${connected})`; + online = nodeObject.online + const sqlQuery = `INSERT INTO ${nodesTable} (name, ip, port, location, nearbySystems, online) VALUES ('${name}', '${ip}', ${port}, '${location}', '${nearbySystems}', ${online})`; const sqlResponse = await new Promise((recordResolve, recordReject) => { runSQL(sqlQuery, (rows) => { diff --git a/Server/utilities/recordHelper.js b/Server/utilities/recordHelper.js index 3315da6..0375fdf 100644 --- a/Server/utilities/recordHelper.js +++ b/Server/utilities/recordHelper.js @@ -110,8 +110,6 @@ class nodeObject { * @param {*} param0._port The port that the client is listening on * @param {*} param0._location The physical location of the node * @param {*} param0._online True/False if the node is online or offline - * @param {*} param0._connected True/False if the bot is connected to discord or not - * @param {*} param0._connection The connection Object associated with the node, null if not checked, undefined if none exists * @param {*} param0._nearbySystems An object array of nearby systems */ constructor({ _id = null, _name = null, _ip = null, _port = null, _location = null, _nearbySystems = null, _online = null }) {