mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
⚡ Remove not used code
This commit is contained in:
parent
bb05f8113d
commit
0b56db5617
|
@ -54,7 +54,6 @@ import {
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ICredentialsDecrypted,
|
ICredentialsDecrypted,
|
||||||
ICredentialsEncrypted,
|
|
||||||
ICredentialType,
|
ICredentialType,
|
||||||
IDataObject,
|
IDataObject,
|
||||||
INodeCredentials,
|
INodeCredentials,
|
||||||
|
@ -67,12 +66,12 @@ import {
|
||||||
INodeVersionedType,
|
INodeVersionedType,
|
||||||
ITelemetrySettings,
|
ITelemetrySettings,
|
||||||
IWorkflowBase,
|
IWorkflowBase,
|
||||||
IWorkflowCredentials,
|
|
||||||
LoggerProxy,
|
LoggerProxy,
|
||||||
NodeCredentialTestRequest,
|
NodeCredentialTestRequest,
|
||||||
NodeCredentialTestResult,
|
NodeCredentialTestResult,
|
||||||
NodeHelpers,
|
NodeHelpers,
|
||||||
Workflow,
|
Workflow,
|
||||||
|
ICredentialsEncrypted,
|
||||||
WorkflowExecuteMode,
|
WorkflowExecuteMode,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
|
@ -1820,12 +1819,6 @@ class App {
|
||||||
return ResponseHelper.sendErrorResponse(res, errorResponse);
|
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 mode: WorkflowExecuteMode = 'internal';
|
||||||
const credentialsHelper = new CredentialsHelper(encryptionKey);
|
const credentialsHelper = new CredentialsHelper(encryptionKey);
|
||||||
const decryptedDataOriginal = await credentialsHelper.getDecrypted(
|
const decryptedDataOriginal = await credentialsHelper.getDecrypted(
|
||||||
|
@ -2044,13 +2037,6 @@ class App {
|
||||||
return ResponseHelper.sendErrorResponse(res, errorResponse);
|
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 mode: WorkflowExecuteMode = 'internal';
|
||||||
const credentialsHelper = new CredentialsHelper(encryptionKey);
|
const credentialsHelper = new CredentialsHelper(encryptionKey);
|
||||||
const decryptedDataOriginal = await credentialsHelper.getDecrypted(
|
const decryptedDataOriginal = await credentialsHelper.getDecrypted(
|
||||||
|
|
Loading…
Reference in a new issue