mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
revert RuleCount fix (broken)
This commit is contained in:
parent
9b7c2c5243
commit
4bda85a2eb
1 changed files with 1 additions and 6 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue