mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-11 22:40:11 -05:00
Revert "Expand PluginHandler to Support Periodic Updates"
This commit is contained in:
committed by
GitHub
parent
630c760d13
commit
3e6514f567
@@ -1278,11 +1278,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
||||
if (typeof command.plugin != 'string') break;
|
||||
try {
|
||||
var pluginHandler = require('./pluginHandler.js').pluginHandler(parent.parent);
|
||||
if (command.plugin == '__all') {
|
||||
pluginHandler.callHook(command.hook, command, obj, parent);
|
||||
} else {
|
||||
pluginHandler.plugins[command.plugin].serveraction(command, obj, parent);
|
||||
}
|
||||
pluginHandler.plugins[command.plugin].serveraction(command, obj, parent);
|
||||
} catch (e) {
|
||||
console.log('Error loading plugin handler (' + e + ')');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user