Passing local server tests
Some checks failed
Run Socket Server Tests / test (push) Failing after 30s
Some checks failed
Run Socket Server Tests / test (push) Failing after 30s
This commit is contained in:
@@ -28,11 +28,14 @@ export const nodeLoginWrapper = async (data, socket) => {
|
||||
console.log("After grabbing", node);
|
||||
if (!node) {
|
||||
const insertedId = await createNode(data);
|
||||
node = await getNodeByNuid(data.nuid);
|
||||
console.log("Added new node to the database:", insertedId);
|
||||
} else {
|
||||
// Check for updates
|
||||
const updatedNode = await updateNodeByNuid(data.nuid, data)
|
||||
console.log("Updated node:", updatedNode);
|
||||
}
|
||||
// Check for updates if so
|
||||
// Check for System updates
|
||||
|
||||
node = await getNodeByNuid(data.nuid);
|
||||
|
||||
// Add the socket/node connection
|
||||
socket.node = node;
|
||||
|
||||
Reference in New Issue
Block a user