Removed erroneous indexing on sqlreseponse

This commit is contained in:
Logan Cusano
2023-06-18 22:32:01 -04:00
parent 37a03c5cc6
commit 333e7420f4

View File

@@ -148,7 +148,7 @@ exports.addNewNode = async (nodeObject, callback) => {
// Call back the first (and theoretically only) row
// Specify 0 so downstream functions don't have to worry about it
const newNode = await this.getNodeInfoFromId(sqlResponse[0].insertId);
const newNode = await this.getNodeInfoFromId(sqlResponse.insertId);
log.DEBUG("Added new node: ", newNode)
return (callback) ? callback(newNode) : newNode;
}