revert RuleCount fix (broken)

This commit is contained in:
Collin M. Barrett 2018-08-24 14:22:53 -05:00
parent 9b7c2c5243
commit 4bda85a2eb

View file

@ -15,12 +15,7 @@ public ListDetailsDtoMappingProfile() =>
.ForMember(d => d.Maintainers, c => c.MapFrom(l => l.FilterListMaintainers.Select(m => m.Maintainer)))
.ForMember(d => d.Tags, c => c.MapFrom(l => l.FilterListTags.Select(m => m.Tag)))
.ForMember(d => d.RuleCount,
c => c.MapFrom(l =>
l.Snapshots
.OrderByDescending(s => s.CreatedDateUtc)
.FirstOrDefault()
.SnapshotRules
.Count))
c => c.MapFrom(l => 0))
.ForMember(d => d.UpdatedDate,
c => c.MapFrom(l =>
l.ModifiedDateUtc));