Always return serialized workflow when updating

This is more predictable, just returning the payload
if there are no changes isn't that useful.
This commit is contained in:
mvdbeek
2019-08-01 12:25:37 +02:00
parent 090b6af592
commit e164290c5c
@@ -566,9 +566,6 @@ class WorkflowsAPIController(BaseAPIController, UsesStoredWorkflowMixin, UsesAnn
)
except workflows.MissingToolsException:
raise exceptions.MessageException("This workflow contains missing tools. It cannot be saved until they have been removed from the workflow or installed.")
else:
# We only adjusted tags and menu entry
return payload
else:
message = "Updating workflow requires dictionary containing 'workflow' attribute with new JSON description."
raise exceptions.RequestParameterInvalidException(message)