mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix UpdatedDate bug by eager loading Snapshots
This commit is contained in:
parent
57e50eff93
commit
c13a5eec35
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue