diff --git a/packages/cli/src/ActiveWorkflowRunner.ts b/packages/cli/src/ActiveWorkflowRunner.ts index e8964f10e..8162689f9 100644 --- a/packages/cli/src/ActiveWorkflowRunner.ts +++ b/packages/cli/src/ActiveWorkflowRunner.ts @@ -181,8 +181,9 @@ export class ActiveWorkflowRunner { * @returns {string[]} * @memberof ActiveWorkflowRunner */ - getActiveWorkflows(): Promise { - return Db.collections.Workflow?.find({ where: { active: true }, select: ['id'] }) as Promise; + async getActiveWorkflows(): Promise { + const activeWorkflows = await Db.collections.Workflow?.find({ where: { active: true }, select: ['id'] }) as IWorkflowDb[]; + return activeWorkflows.filter(workflow => this.activationErrors[workflow.id.toString()] === undefined); }