mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
⚡ Add external hook "activeWorkflows.initialized" (#2571)
This commit is contained in:
@@ -45,6 +45,7 @@ import {
|
|||||||
WorkflowExecuteAdditionalData,
|
WorkflowExecuteAdditionalData,
|
||||||
WorkflowHelpers,
|
WorkflowHelpers,
|
||||||
WorkflowRunner,
|
WorkflowRunner,
|
||||||
|
ExternalHooks,
|
||||||
} from '.';
|
} from '.';
|
||||||
import config = require('../config');
|
import config = require('../config');
|
||||||
|
|
||||||
@@ -112,6 +113,8 @@ export class ActiveWorkflowRunner {
|
|||||||
}
|
}
|
||||||
Logger.verbose('Finished initializing active workflows (startup)');
|
Logger.verbose('Finished initializing active workflows (startup)');
|
||||||
}
|
}
|
||||||
|
const externalHooks = ExternalHooks();
|
||||||
|
await externalHooks.run('activeWorkflows.initialized', []);
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
||||||
|
|||||||
Reference in New Issue
Block a user