Enable payload without status update (#6881)

As title
This commit is contained in:
Thomas Trompette
2024-09-03 17:24:29 +02:00
committed by GitHub
parent 50a65ef46b
commit 44ff55f550

View File

@@ -69,7 +69,7 @@ export class WorkflowVersionValidationWorkspaceService {
assertWorkflowVersionIsDraft(workflowVersion); assertWorkflowVersionIsDraft(workflowVersion);
if (payload.data.status !== workflowVersion.status) { if (payload.data.status && payload.data.status !== workflowVersion.status) {
throw new WorkflowQueryValidationException( throw new WorkflowQueryValidationException(
'Cannot update workflow version status manually', 'Cannot update workflow version status manually',
WorkflowQueryValidationExceptionCode.FORBIDDEN, WorkflowQueryValidationExceptionCode.FORBIDDEN,