From dd1efc57570d86304eef24c22bf13c8d81b4eb47 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Wed, 15 Aug 2018 14:43:48 -0500 Subject: [PATCH] finish removing added date from summaries endpoint ref #271 --- .../FilterList/MappingProfiles/ListSummaryDtoMappingProfile.cs | 1 - src/FilterLists.Services/FilterList/Models/ListSummaryDto.cs | 1 - src/FilterLists.Web/ClientApp/components/Home.tsx | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/FilterLists.Services/FilterList/MappingProfiles/ListSummaryDtoMappingProfile.cs b/src/FilterLists.Services/FilterList/MappingProfiles/ListSummaryDtoMappingProfile.cs index a66a9e604..b4e4669a5 100644 --- a/src/FilterLists.Services/FilterList/MappingProfiles/ListSummaryDtoMappingProfile.cs +++ b/src/FilterLists.Services/FilterList/MappingProfiles/ListSummaryDtoMappingProfile.cs @@ -10,7 +10,6 @@ public class ListSummaryDtoMappingProfile : Profile { public ListSummaryDtoMappingProfile() => CreateMap() - .ForMember(d => d.AddedDate, c => c.MapFrom(l => l.CreatedDateUtc)) .ForMember(d => d.Languages, c => c.MapFrom(l => l.FilterListLanguages.Select(la => la.Language))) .ForMember(d => d.UpdatedDate, c => c.MapFrom(l => diff --git a/src/FilterLists.Services/FilterList/Models/ListSummaryDto.cs b/src/FilterLists.Services/FilterList/Models/ListSummaryDto.cs index 9b782c91d..8f7e9ece3 100644 --- a/src/FilterLists.Services/FilterList/Models/ListSummaryDto.cs +++ b/src/FilterLists.Services/FilterList/Models/ListSummaryDto.cs @@ -8,7 +8,6 @@ namespace FilterLists.Services.FilterList.Models public class ListSummaryDto { public uint Id { get; set; } - public DateTime? AddedDate { get; set; } public IEnumerable Languages { get; set; } public string Name { get; set; } public DateTime? UpdatedDate { get; set; } diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index 4fbbc3a77..635d228f9 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -164,7 +164,6 @@ export class Home extends React.Component, IHomeState> { interface IListDto { id: number; - addedDate: string; name: string; languages: IListLanguageDto[]; updatedDate: string; @@ -182,4 +181,4 @@ function SubscribeUrl(props: any) { title={"Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus)."}> Subscribe ; -} +} \ No newline at end of file