mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-27 10:17:33 -07:00
8 lines
432 B
TypeScript
8 lines
432 B
TypeScript
|
import { eventEmitter } from 'n8n-core';
|
||
|
import { nodeFetchedData, workflowExecutionCompleted } from './WorkflowStatistics';
|
||
|
|
||
|
// Check for undefined as during testing these functions end up undefined for some reason
|
||
|
if (nodeFetchedData) eventEmitter.on(eventEmitter.types.nodeFetchedData, nodeFetchedData);
|
||
|
if (workflowExecutionCompleted)
|
||
|
eventEmitter.on(eventEmitter.types.workflowExecutionCompleted, workflowExecutionCompleted);
|