finish removing added date from summaries endpoint

ref #271
This commit is contained in:
Collin M. Barrett 2018-08-15 14:43:48 -05:00
parent c0ad950bbe
commit 9fe4fb7edd
3 changed files with 1 additions and 4 deletions

View file

@ -10,7 +10,6 @@ public class ListSummaryDtoMappingProfile : Profile
{
public ListSummaryDtoMappingProfile() =>
CreateMap<Data.Entities.FilterList, ListSummaryDto>()
.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 =>

View file

@ -8,7 +8,6 @@ namespace FilterLists.Services.FilterList.Models
public class ListSummaryDto
{
public uint Id { get; set; }
public DateTime? AddedDate { get; set; }
public IEnumerable<ListLanguagesDto> Languages { get; set; }
public string Name { get; set; }
public DateTime? UpdatedDate { get; set; }

View file

@ -164,7 +164,6 @@ export class Home extends React.Component<RouteComponentProps<{}>, 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
</a>;
}
}