Do not send error if workflow is already published
This commit is contained in:
parent
fb3b5339f4
commit
b05449c031
|
|
@ -50,8 +50,7 @@ internal class Publish(IWorkflowDefinitionStore store, IWorkflowDefinitionPublis
|
|||
|
||||
if (definition.IsPublished)
|
||||
{
|
||||
AddError($"Workflow with id {request.DefinitionId} is already published");
|
||||
await SendErrorsAsync(cancellation: cancellationToken);
|
||||
await SendStringAsync($"Workflow with id {request.DefinitionId} is already published");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue