From bc07659befc6e866ed1445f92344aad7b8e75697 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sun, 13 Oct 2019 11:50:28 -0700 Subject: [PATCH] Fixed node change server exception. --- meshuser.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshuser.js b/meshuser.js index ce752e61..2c9fff91 100644 --- a/meshuser.js +++ b/meshuser.js @@ -2306,7 +2306,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use // Event the node change. Only do this if the database will not do it. event.msg = 'Changed device ' + node.name + ' from group ' + mesh.name + ': ' + changes.join(', '); - event.node = parent.CloneSafeNode(device); + event.node = parent.CloneSafeNode(node); if (db.changeStream) { event.noact = 1; } // If DB change stream is active, don't use this event to change the node. Another event will come. parent.parent.DispatchEvent(['*', node.meshid, user._id], obj, event); } diff --git a/package.json b/package.json index c07697ca..86778565 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.4.2-g", + "version": "0.4.2-i", "keywords": [ "Remote Management", "Intel AMT",