diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index 3532ad9c4b..61a58febb5 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -54,7 +54,6 @@ import { import { ICredentialsDecrypted, - ICredentialsEncrypted, ICredentialType, IDataObject, INodeCredentials, @@ -67,12 +66,12 @@ import { INodeVersionedType, ITelemetrySettings, IWorkflowBase, - IWorkflowCredentials, LoggerProxy, NodeCredentialTestRequest, NodeCredentialTestResult, NodeHelpers, Workflow, + ICredentialsEncrypted, WorkflowExecuteMode, } from 'n8n-workflow'; @@ -1820,12 +1819,6 @@ class App { return ResponseHelper.sendErrorResponse(res, errorResponse); } - // Decrypt the currently saved credentials - const workflowCredentials: IWorkflowCredentials = { - [result.type]: { - [result.id.toString()]: result as ICredentialsEncrypted, - }, - }; const mode: WorkflowExecuteMode = 'internal'; const credentialsHelper = new CredentialsHelper(encryptionKey); const decryptedDataOriginal = await credentialsHelper.getDecrypted( @@ -2044,13 +2037,6 @@ class App { return ResponseHelper.sendErrorResponse(res, errorResponse); } - // Decrypt the currently saved credentials - const workflowCredentials: IWorkflowCredentials = { - [result.type]: { - [result.id.toString()]: result as ICredentialsEncrypted, - }, - }; - const mode: WorkflowExecuteMode = 'internal'; const credentialsHelper = new CredentialsHelper(encryptionKey); const decryptedDataOriginal = await credentialsHelper.getDecrypted(