fix(core): Deactivate active workflows during import (#5840)

* deactivate imported workflows

* improve test

* fix for combined import (and test)

* cleanup
This commit is contained in:
Michael Auerswald
2023-03-30 15:33:30 +02:00
committed by GitHub
parent e4796c169b
commit fa5bc814b0
6 changed files with 407 additions and 0 deletions

View File

@@ -489,6 +489,10 @@ export async function createWorkflowWithTrigger(
return workflow;
}
export async function getAllWorkflows() {
return Db.collections.Workflow.find();
}
// ----------------------------------
// workflow sharing
// ----------------------------------