Translate.json fixed, crash on device delete fix.

This commit is contained in:
Ylian Saint-Hilaire 2019-12-28 21:36:59 -08:00
parent 88dbaa58fe
commit 4d94ae18f5
3 changed files with 171 additions and 141 deletions

View File

@ -2135,7 +2135,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
});
// Event node deletion
var event = { etype: 'node', userid: user._id, username: user.name, action: 'removenode', nodeid: node._id, msg: 'Removed device ' + node.name + ' from group ' + mesh.name, domain: domain.id };
var event = { etype: 'node', userid: user._id, username: user.name, action: 'removenode', nodeid: node._id, msg: 'Removed device ' + node.name + ' from group ' + parent.meshes[node.meshid].name, domain: domain.id };
// TODO: We can't use the changeStream for node delete because we will not know the meshid the device was in.
//if (db.changeStream) { event.noact = 1; } // If DB change stream is active, don't use this event to remove the node. Another event will come.
parent.parent.DispatchEvent(['*', node.meshid], obj, event);

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.4.6-q",
"version": "0.4.6-r",
"keywords": [
"Remote Management",
"Intel AMT",

File diff suppressed because it is too large Load Diff