From c94509c116e56bea569d8181d74dcb10e916ebee Mon Sep 17 00:00:00 2001 From: James Gunn Date: Fri, 12 Apr 2024 17:27:52 +0100 Subject: [PATCH] Fix logic that derives which minor versions an action applies to (#1279) --- .../ApplicationModel/BackFillVersionedEndpointsConvention.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/ApplicationModel/BackFillVersionedEndpointsConvention.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/ApplicationModel/BackFillVersionedEndpointsConvention.cs index 181568d78..4822addb2 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/ApplicationModel/BackFillVersionedEndpointsConvention.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/ApplicationModel/BackFillVersionedEndpointsConvention.cs @@ -61,7 +61,7 @@ public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel ap { acceptedVersions.Add(version); } - else if (epForThisVersion.Action.Attributes.OfType().Any()) + else { break; }