mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
refactor(core): Refactor WorkflowStatistics code (no-changelog) (#6617)
refactor(core): Refactor WorkflowStatistics code
This commit is contained in:
committed by
GitHub
parent
e7091d6726
commit
f4a18ba87d
@@ -1,15 +0,0 @@
|
||||
import EventEmitter from 'events';
|
||||
|
||||
interface EventTypes {
|
||||
nodeFetchedData: string;
|
||||
workflowExecutionCompleted: string;
|
||||
}
|
||||
|
||||
class N8NEventEmitter extends EventEmitter {
|
||||
types: EventTypes = {
|
||||
nodeFetchedData: 'nodeFetchedData',
|
||||
workflowExecutionCompleted: 'workflowExecutionCompleted',
|
||||
};
|
||||
}
|
||||
|
||||
export const eventEmitter = new N8NEventEmitter();
|
||||
@@ -1,4 +1,3 @@
|
||||
import { eventEmitter } from './EventEmitter';
|
||||
import * as NodeExecuteFunctions from './NodeExecuteFunctions';
|
||||
import * as UserSettings from './UserSettings';
|
||||
|
||||
@@ -14,5 +13,5 @@ export * from './LoadNodeParameterOptions';
|
||||
export * from './LoadNodeListSearch';
|
||||
export * from './NodeExecuteFunctions';
|
||||
export * from './WorkflowExecute';
|
||||
export { eventEmitter, NodeExecuteFunctions, UserSettings };
|
||||
export { NodeExecuteFunctions, UserSettings };
|
||||
export * from './errors';
|
||||
|
||||
Reference in New Issue
Block a user