Cleanup of external hooks

This commit is contained in:
Jan Oberhauser
2020-06-10 13:00:28 +02:00
parent 6e1254fd54
commit 57b3a2e05e
5 changed files with 7 additions and 51 deletions

View File

@@ -10,6 +10,7 @@ import {
import {
ActiveExecutions,
Db,
ExternalHooks,
GenericHelpers,
IWorkflowBase,
IWorkflowExecutionDataProcess,
@@ -103,6 +104,10 @@ export class Execute extends Command {
// Wait till the n8n-packages have been read
await loadNodesAndCredentialsPromise;
// Load all external hooks
const externalHooks = ExternalHooks();
await externalHooks.init();
// Add the found types to an instance other parts of the application can use
const nodeTypes = NodeTypes();
await nodeTypes.init(loadNodesAndCredentials.nodeTypes);