diff --git a/src/FilterLists.Services/FilterList/MappingProfiles/FilterListDtoMappingProfile.cs b/src/FilterLists.Services/FilterList/MappingProfiles/FilterListDtoMappingProfile.cs index 16ed13838..604423be8 100644 --- a/src/FilterLists.Services/FilterList/MappingProfiles/FilterListDtoMappingProfile.cs +++ b/src/FilterLists.Services/FilterList/MappingProfiles/FilterListDtoMappingProfile.cs @@ -40,14 +40,15 @@ public FilterListDtoMappingProfile() => .Select(lt => (int)lt.TagId))) .ForMember(dest => dest.UpdatedDate, opt => opt.MapFrom(src => - src.Snapshots - .Count(s => s.WasSuccessful && s.WasUpdated) >= 2 + src.DiscontinuedDate ?? + (src.Snapshots + .Count(s => s.WasSuccessful && s.WasUpdated) >= 2 ? src.Snapshots .Where(s => s.WasSuccessful && s.WasUpdated) .Select(s => s.CreatedDateUtc) .OrderByDescending(c => c) .FirstOrDefault() - : null)) + : null))) .ForMember(dest => dest.ViewUrlMirrors, opt => opt.MapFrom(src => src.ViewUrlMirror1 != null