Prevent workflow version from bad update (#6848)

Closes https://github.com/twentyhq/twenty/issues/6840

- Add query-hooks folder in common. Will be followed by hooks for
workflows and runs
- When updating a version, ensure the status is draft and that the
status is not manually updated
This commit is contained in:
Thomas Trompette
2024-09-02 16:20:20 +02:00
committed by GitHub
parent 7e03419c16
commit 329e7364a4
6 changed files with 105 additions and 0 deletions

View File

@ -1,8 +1,10 @@
import { Module } from '@nestjs/common';
import { WorkflowQueryHookModule } from 'src/modules/workflow/common/query-hooks/workflow-query-hook.module';
import { WorkflowCommonWorkspaceService } from 'src/modules/workflow/common/workflow-common.workspace-service';
@Module({
imports: [WorkflowQueryHookModule],
providers: [WorkflowCommonWorkspaceService],
exports: [WorkflowCommonWorkspaceService],
})