Merge pull request #707 from ryanblenis/plugin-admin

Fix updateMeshCore Call
This commit is contained in:
Ylian Saint-Hilaire 2019-12-05 10:34:13 -08:00 committed by GitHub
commit 0d04d97164

View File

@ -490,6 +490,7 @@ module.exports.pluginHandler = function (parent) {
parent.db.setPluginStatus(id, 0, func); parent.db.setPluginStatus(id, 0, func);
delete obj.plugins[plugin.shortName]; delete obj.plugins[plugin.shortName];
delete obj.exports[plugin.shortName]; delete obj.exports[plugin.shortName];
parent.updateMeshCore();
}); });
}; };
@ -501,7 +502,6 @@ module.exports.pluginHandler = function (parent) {
rimraf.sync(pluginPath); rimraf.sync(pluginPath);
parent.db.deletePlugin(id, func); parent.db.deletePlugin(id, func);
delete obj.plugins[plugin.shortName]; delete obj.plugins[plugin.shortName];
obj.parent.updateMeshCore();
}); });
}; };