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; }