- #7 needs to error check more - both need to be cleaned up
This commit is contained in:
@@ -24,13 +24,7 @@ async function leaveServerWrapper(clientIdObject) {
|
||||
|
||||
log.VERBOSE("Response Object from node ", node, responseObj);
|
||||
if (!responseObj || !responseObj.statusCode == 202) return false;
|
||||
// Node has disconnected from discord
|
||||
|
||||
// Updating the node object in the DB
|
||||
node.connected = false;
|
||||
const updatedNode = await updateNodeInfo(node)
|
||||
log.DEBUG("Updated Node: ", updatedNode);
|
||||
|
||||
// Node has disconnected from discor
|
||||
// Removing the node connection from the DB
|
||||
const removedConnection = removeNodeConnectionByNodeId(node.id);
|
||||
log.DEBUG("Removed Node Connection: ", removedConnection);
|
||||
|
||||
Reference in New Issue
Block a user