mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-13 11:31:50 +00:00
Merge pull request #707 from ryanblenis/plugin-admin
Fix updateMeshCore Call
This commit is contained in:
commit
2fca329615
1 changed files with 1 additions and 1 deletions
|
@ -490,6 +490,7 @@ module.exports.pluginHandler = function (parent) {
|
|||
parent.db.setPluginStatus(id, 0, func);
|
||||
delete obj.plugins[plugin.shortName];
|
||||
delete obj.exports[plugin.shortName];
|
||||
parent.updateMeshCore();
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -501,7 +502,6 @@ module.exports.pluginHandler = function (parent) {
|
|||
rimraf.sync(pluginPath);
|
||||
parent.db.deletePlugin(id, func);
|
||||
delete obj.plugins[plugin.shortName];
|
||||
obj.parent.updateMeshCore();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue