Forgot to await getting new node

This commit is contained in:
Logan Cusano
2023-06-18 22:29:16 -04:00
parent d2e9f286e2
commit 37a03c5cc6

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 = this.getNodeInfoFromId(sqlResponse.insertId);
const newNode = await this.getNodeInfoFromId(sqlResponse[0].insertId);
log.DEBUG("Added new node: ", newNode)
return (callback) ? callback(newNode) : newNode;
}