From e7766ce18908953ca7fd7484f874c36dda0b3c5a Mon Sep 17 00:00:00 2001 From: Pietervo <85137658+pietervoorschot@users.noreply.github.com> Date: Mon, 18 Mar 2024 23:18:15 +0100 Subject: [PATCH] Update VersionOptions.cs (#5053) When setting the VersionOptions with the TryParse function to LatestAndPublished, it sets IsLatestOrPublished to true instead of IsLatestAndPublished. --- src/clients/Elsa.Api.Client/Shared/Models/VersionOptions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clients/Elsa.Api.Client/Shared/Models/VersionOptions.cs b/src/clients/Elsa.Api.Client/Shared/Models/VersionOptions.cs index 344f08df6..1a76ee1e4 100644 --- a/src/clients/Elsa.Api.Client/Shared/Models/VersionOptions.cs +++ b/src/clients/Elsa.Api.Client/Shared/Models/VersionOptions.cs @@ -31,7 +31,7 @@ public struct VersionOptions /// /// Gets the latest, published version. /// - public static readonly VersionOptions LatestAndPublished = new() { IsLatestOrPublished = true }; + public static readonly VersionOptions LatestAndPublished = new() { IsLatestAndPublished = true }; /// /// Gets the draft version. @@ -114,4 +114,4 @@ public struct VersionOptions /// Returns a simple string representation of this . /// public override string ToString() => AllVersions ? "AllVersions" : IsDraft ? "Draft" : IsLatest ? "Latest" : IsPublished ? "Published" : IsLatestOrPublished ? "LatestOrPublished" : IsLatestAndPublished ? "LatestAndPublished" : Version.ToString(); -} \ No newline at end of file +}