Removed erroneous indexing on sqlreseponse
This commit is contained in:
@@ -148,7 +148,7 @@ exports.addNewNode = async (nodeObject, callback) => {
|
|||||||
|
|
||||||
// Call back the first (and theoretically only) row
|
// Call back the first (and theoretically only) row
|
||||||
// Specify 0 so downstream functions don't have to worry about it
|
// 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)
|
log.DEBUG("Added new node: ", newNode)
|
||||||
return (callback) ? callback(newNode) : newNode;
|
return (callback) ? callback(newNode) : newNode;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user