Add external hook "activeWorkflows.initialized" (#2571)

This commit is contained in:
Vahid Sebto 2022-01-08 21:23:42 +03:30 committed by GitHub
parent 67d876e559
commit 228ba36b56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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