#37 Implement v1 Web Apps #41

Merged
logan merged 58 commits from #37-implement-webapps into master 2023-08-04 23:46:50 -04:00
Showing only changes of commit abb833840a - Show all commits

View File

@@ -248,13 +248,13 @@ exports.updateExistingNode = async = (req, res) => {
if (!nodeInfo) {
log.WARN("No existing node found with this ID, adding node: ", checkInObject);
addNewNode(checkInObject, (newNode) => {
this.requestNodeCheckIn(checkInObject.id);
this.requestNodeCheckIn({"params": {"nodeId": checkInObject.id}});
return res.status(201).json({ "updatedKeys": newNode });
});
}
else {
updateNodeInfo(checkInObject, () => {
this.requestNodeCheckIn(checkInObject.id);
this.requestNodeCheckIn({"params": {"nodeId": checkInObject.id}});
return res.status(202).json({ "updatedKeys": checkInObject });
});
}