From 0d2adf297b8da06629b2cc78549ae68870efa8b6 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Tue, 5 Mar 2024 20:41:19 +0100 Subject: [PATCH] Change version option in WorkflowDefinitionManager The version option in the WorkflowDefinitionManager has been updated. Previously it was set to "LatestAndPublished", but this has been changed to "LatestOrPublished", adjusting the way the manager handles workflow versions. --- .../Services/WorkflowDefinitionManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Elsa.Workflows.Management/Services/WorkflowDefinitionManager.cs b/src/modules/Elsa.Workflows.Management/Services/WorkflowDefinitionManager.cs index b544f5c21..fd3b7a934 100644 --- a/src/modules/Elsa.Workflows.Management/Services/WorkflowDefinitionManager.cs +++ b/src/modules/Elsa.Workflows.Management/Services/WorkflowDefinitionManager.cs @@ -128,7 +128,7 @@ public class WorkflowDefinitionManager : IWorkflowDefinitionManager var workflowDefinitions = (await _store.FindManyAsync(new WorkflowDefinitionFilter { - VersionOptions = VersionOptions.LatestAndPublished + VersionOptions = VersionOptions.LatestOrPublished }, cancellationToken)).ToList(); // Remove the dependency from the list of workflow definitions to consider.