🐛 Fix bug with internal hooks and CLI workflow execution

This commit is contained in:
Jan Oberhauser
2021-11-09 22:04:45 +01:00
parent 27543fcdd4
commit 653a8bb42e
2 changed files with 14 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ import {
CredentialTypes,
Db,
ExternalHooks,
InternalHooksManager,
IWorkflowBase,
IWorkflowExecutionDataProcess,
LoadNodesAndCredentials,
@@ -123,6 +124,9 @@ export class Execute extends Command {
const externalHooks = ExternalHooks();
await externalHooks.init();
const instanceId = await UserSettings.getInstanceId();
InternalHooksManager.init(instanceId);
// Add the found types to an instance other parts of the application can use
const nodeTypes = NodeTypes();
await nodeTypes.init(loadNodesAndCredentials.nodeTypes);