Check workflow version is valid before publishing (#6702)
Fix https://github.com/twentyhq/twenty/issues/6670
This commit is contained in:
@ -35,7 +35,7 @@ export class WorkflowCommonWorkspaceService {
|
||||
);
|
||||
}
|
||||
|
||||
if (!workflowVersion.trigger || !workflowVersion.trigger?.type) {
|
||||
if (!workflowVersion.trigger) {
|
||||
throw new WorkflowTriggerException(
|
||||
'Workflow version does not contains trigger',
|
||||
WorkflowTriggerExceptionCode.INVALID_WORKFLOW_VERSION,
|
||||
|
||||
Reference in New Issue
Block a user