fix(core): Fix update workflow cli command being unable to activate all workflows (#8412)
Co-authored-by: Daniel Schröder <daniel.schroeder@skriptfabrik.com>
This commit is contained in:
@@ -213,6 +213,10 @@ export class WorkflowRepository extends Repository<WorkflowEntity> {
|
||||
return await this.update({ active: true }, { active: false });
|
||||
}
|
||||
|
||||
async activateAll() {
|
||||
return await this.update({ active: false }, { active: true });
|
||||
}
|
||||
|
||||
async findByActiveState(activeState: boolean) {
|
||||
return await this.findBy({ active: activeState });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user