fix: Reset IsLatest also for not published workflows on PublishAsync
When an unpublished workflow is published, IsLatest is not set to false because the PublishAsync method was only looking for published workflows.
This commit is contained in:
parent
dbb91a816a
commit
197db28702
|
|
@ -59,7 +59,7 @@ namespace Elsa.Services.Workflows
|
|||
{
|
||||
var publishedDefinition = await _workflowDefinitionStore.FindByDefinitionIdAsync(
|
||||
workflowDefinition.DefinitionId,
|
||||
VersionOptions.Published,
|
||||
VersionOptions.LatestOrPublished,
|
||||
cancellationToken);
|
||||
|
||||
if (publishedDefinition != null)
|
||||
|
|
@ -177,4 +177,4 @@ namespace Elsa.Services.Workflows
|
|||
return workflowDefinition;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue