refactor(core): Streamline flows in multi-main mode (no-changelog) (#8446)

This commit is contained in:
Iván Ovejero
2024-02-05 09:26:55 +01:00
committed by GitHub
parent da1fe44d52
commit dc5ec8f946
12 changed files with 205 additions and 283 deletions

View File

@@ -33,7 +33,10 @@ export const error = (e: unknown, options?: ReportingOptions) => {
if (toReport) instance.report(toReport, options);
};
export const report = error;
export const info = (msg: string, options?: ReportingOptions) => {
Logger.info(msg);
instance.report(msg, options);
};
export const warn = (warning: Error | string, options?: ReportingOptions) =>
error(warning, { level: 'warning', ...options });

View File

@@ -1986,10 +1986,10 @@ export type WorkflowExecuteMode =
export type WorkflowActivateMode =
| 'init'
| 'create'
| 'create' // unused
| 'update'
| 'activate'
| 'manual'
| 'manual' // unused
| 'leadershipChange';
export interface IWorkflowHooksOptionalParameters {