Fix https://github.com/twentyhq/twenty/issues/6669 - create a commun function `startWorkflowRun` that both create the run object and the job for executing the workflow - use it in both the `workflowEventJob` and the `runWorkflowVersion` endpoint Bonus: - use filtering for exceptions instead of a util. It avoids doing a try catch in all endpoint
9 lines
226 B
TypeScript
9 lines
226 B
TypeScript
import { Module } from '@nestjs/common';
|
|
|
|
import { WorkflowTriggerModule } from 'src/modules/workflow/workflow-trigger/workflow-trigger.module';
|
|
|
|
@Module({
|
|
imports: [WorkflowTriggerModule],
|
|
})
|
|
export class WorkflowModule {}
|