Skip to content

Commit

Permalink
Update VersionOptions.cs (#5053)
Browse files Browse the repository at this point in the history
When setting the VersionOptions with the TryParse function to LatestAndPublished, it sets IsLatestOrPublished to true instead of IsLatestAndPublished.
  • Loading branch information
pietervoorschot committed Mar 18, 2024
1 parent a4a05dc commit e7766ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clients/Elsa.Api.Client/Shared/Models/VersionOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public struct VersionOptions
/// <summary>
/// Gets the latest, published version.
/// </summary>
public static readonly VersionOptions LatestAndPublished = new() { IsLatestOrPublished = true };
public static readonly VersionOptions LatestAndPublished = new() { IsLatestAndPublished = true };

/// <summary>
/// Gets the draft version.
Expand Down Expand Up @@ -114,4 +114,4 @@ public static bool TryParse(string value, out VersionOptions versionOptions)
/// Returns a simple string representation of this <see cref="VersionOptions"/>.
/// </summary>
public override string ToString() => AllVersions ? "AllVersions" : IsDraft ? "Draft" : IsLatest ? "Latest" : IsPublished ? "Published" : IsLatestOrPublished ? "LatestOrPublished" : IsLatestAndPublished ? "LatestAndPublished" : Version.ToString();
}
}

0 comments on commit e7766ce

Please sign in to comment.