fix UpdatedDate bug by eager loading Snapshots

This commit is contained in:
Collin M. Barrett 2018-10-09 20:17:14 -05:00
parent 57e50eff93
commit c13a5eec35

View file

@ -54,6 +54,7 @@ await DbContext.FilterLists
.OrderBy(l => l.Snapshots.Any())
.ThenBy(lastSnapTimestamp)
.Take(batchSize)
.Include(l => l.Snapshots)
.ToListAsync();
private async Task<List<TSnap>> CreateAndSaveSnaps<TSnap>(IEnumerable<Data.Entities.FilterList> lists)