🐛 Fix bug with missing credentials with CLI execute

This commit is contained in:
Jan Oberhauser 2020-10-10 18:23:02 +02:00
parent 6d41f43216
commit 8366632268

View file

@ -10,6 +10,7 @@ import {
import {
ActiveExecutions,
CredentialsOverwrites,
CredentialTypes,
Db,
ExternalHooks,
GenericHelpers,
@ -116,6 +117,8 @@ export class Execute extends Command {
// Add the found types to an instance other parts of the application can use
const nodeTypes = NodeTypes();
await nodeTypes.init(loadNodesAndCredentials.nodeTypes);
const credentialTypes = CredentialTypes();
await credentialTypes.init(loadNodesAndCredentials.credentialTypes);
if (!WorkflowHelpers.isWorkflowIdValid(workflowId)) {
workflowId = undefined;