mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Remove more not used code
This commit is contained in:
parent
0b56db5617
commit
a0b89ee5a4
|
@ -15,8 +15,6 @@ import {
|
||||||
IWorkflowExecutionDataProcess,
|
IWorkflowExecutionDataProcess,
|
||||||
LoadNodesAndCredentials,
|
LoadNodesAndCredentials,
|
||||||
NodeTypes,
|
NodeTypes,
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
WorkflowCredentials,
|
|
||||||
WorkflowHelpers,
|
WorkflowHelpers,
|
||||||
WorkflowRunner,
|
WorkflowRunner,
|
||||||
} from '../src';
|
} from '../src';
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { Command, flags } from '@oclif/command';
|
||||||
import { UserSettings } from 'n8n-core';
|
import { UserSettings } from 'n8n-core';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
import { INode, INodeExecutionData, ITaskData, LoggerProxy } from 'n8n-workflow';
|
import { INode, ITaskData, LoggerProxy } from 'n8n-workflow';
|
||||||
|
|
||||||
import { sep } from 'path';
|
import { sep } from 'path';
|
||||||
|
|
||||||
|
@ -28,14 +28,10 @@ import {
|
||||||
CredentialTypes,
|
CredentialTypes,
|
||||||
Db,
|
Db,
|
||||||
ExternalHooks,
|
ExternalHooks,
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
IExecutionsCurrentSummary,
|
|
||||||
IWorkflowDb,
|
IWorkflowDb,
|
||||||
IWorkflowExecutionDataProcess,
|
IWorkflowExecutionDataProcess,
|
||||||
LoadNodesAndCredentials,
|
LoadNodesAndCredentials,
|
||||||
NodeTypes,
|
NodeTypes,
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
WorkflowCredentials,
|
|
||||||
WorkflowRunner,
|
WorkflowRunner,
|
||||||
} from '../src';
|
} from '../src';
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,6 @@ import {
|
||||||
Db,
|
Db,
|
||||||
ExternalHooks,
|
ExternalHooks,
|
||||||
GenericHelpers,
|
GenericHelpers,
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
IExecutionsCurrentSummary,
|
|
||||||
InternalHooksManager,
|
InternalHooksManager,
|
||||||
LoadNodesAndCredentials,
|
LoadNodesAndCredentials,
|
||||||
NodeTypes,
|
NodeTypes,
|
||||||
|
@ -320,8 +318,7 @@ export class Start extends Command {
|
||||||
activeWorkflowRunner = ActiveWorkflowRunner.getInstance();
|
activeWorkflowRunner = ActiveWorkflowRunner.getInstance();
|
||||||
await activeWorkflowRunner.init();
|
await activeWorkflowRunner.init();
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
WaitTracker();
|
||||||
const waitTracker = WaitTracker();
|
|
||||||
|
|
||||||
const editorUrl = GenericHelpers.getBaseUrl();
|
const editorUrl = GenericHelpers.getBaseUrl();
|
||||||
this.log(`\nEditor is now accessible via:\n${editorUrl}`);
|
this.log(`\nEditor is now accessible via:\n${editorUrl}`);
|
||||||
|
|
|
@ -4,8 +4,7 @@ import { Command, flags } from '@oclif/command';
|
||||||
|
|
||||||
import { IDataObject, LoggerProxy } from 'n8n-workflow';
|
import { IDataObject, LoggerProxy } from 'n8n-workflow';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
import { Db } from '../../src';
|
||||||
import { Db, GenericHelpers } from '../../src';
|
|
||||||
|
|
||||||
import { getLogger } from '../../src/Logger';
|
import { getLogger } from '../../src/Logger';
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,6 @@ import {
|
||||||
GenericHelpers,
|
GenericHelpers,
|
||||||
LoadNodesAndCredentials,
|
LoadNodesAndCredentials,
|
||||||
NodeTypes,
|
NodeTypes,
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
TestWebhooks,
|
|
||||||
WebhookServer,
|
WebhookServer,
|
||||||
} from '../src';
|
} from '../src';
|
||||||
|
|
||||||
|
|
|
@ -12,21 +12,12 @@ import * as PCancelable from 'p-cancelable';
|
||||||
import { Command, flags } from '@oclif/command';
|
import { Command, flags } from '@oclif/command';
|
||||||
import { UserSettings, WorkflowExecute } from 'n8n-core';
|
import { UserSettings, WorkflowExecute } from 'n8n-core';
|
||||||
|
|
||||||
import {
|
import { INodeTypes, IRun, Workflow, LoggerProxy } from 'n8n-workflow';
|
||||||
IDataObject,
|
|
||||||
INodeTypes,
|
|
||||||
IRun,
|
|
||||||
IWorkflowExecuteHooks,
|
|
||||||
Workflow,
|
|
||||||
WorkflowHooks,
|
|
||||||
LoggerProxy,
|
|
||||||
} from 'n8n-workflow';
|
|
||||||
|
|
||||||
import { FindOneOptions } from 'typeorm';
|
import { FindOneOptions } from 'typeorm';
|
||||||
|
|
||||||
import * as Bull from 'bull';
|
import * as Bull from 'bull';
|
||||||
import {
|
import {
|
||||||
ActiveExecutions,
|
|
||||||
CredentialsOverwrites,
|
CredentialsOverwrites,
|
||||||
CredentialTypes,
|
CredentialTypes,
|
||||||
Db,
|
Db,
|
||||||
|
@ -39,7 +30,6 @@ import {
|
||||||
LoadNodesAndCredentials,
|
LoadNodesAndCredentials,
|
||||||
NodeTypes,
|
NodeTypes,
|
||||||
ResponseHelper,
|
ResponseHelper,
|
||||||
WorkflowCredentials,
|
|
||||||
WorkflowExecuteAdditionalData,
|
WorkflowExecuteAdditionalData,
|
||||||
} from '../src';
|
} from '../src';
|
||||||
|
|
||||||
|
@ -203,7 +193,7 @@ export class Worker extends Command {
|
||||||
Worker.runningJobs[job.id] = workflowRun;
|
Worker.runningJobs[job.id] = workflowRun;
|
||||||
|
|
||||||
// Wait till the execution is finished
|
// Wait till the execution is finished
|
||||||
const runData = await workflowRun;
|
await workflowRun;
|
||||||
|
|
||||||
delete Worker.runningJobs[job.id];
|
delete Worker.runningJobs[job.id];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue