From abb833840a54f9b00e261fbbf8fb80da402cc0f5 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 21 Jul 2023 18:36:21 -0400 Subject: [PATCH] Update request node checkin in update node --- Server/controllers/nodesController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/controllers/nodesController.js b/Server/controllers/nodesController.js index 6799391..688b6d1 100644 --- a/Server/controllers/nodesController.js +++ b/Server/controllers/nodesController.js @@ -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 }); }); }