Trigger workflow run manually (#6696)
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
This commit is contained in:
1
packages/twenty-server/@types/express.d.ts
vendored
1
packages/twenty-server/@types/express.d.ts
vendored
@ -9,5 +9,6 @@ declare module 'express-serve-static-core' {
|
||||
workspace?: Workspace;
|
||||
workspaceId?: string;
|
||||
workspaceMetadataVersion?: number;
|
||||
workspaceMemberId?: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user