From c13a5eec35c0b08a3978bfbfc51acb2575cd1aef Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Tue, 9 Oct 2018 20:17:14 -0500 Subject: [PATCH] fix UpdatedDate bug by eager loading Snapshots --- src/FilterLists.Services/Snapshot/SnapshotService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FilterLists.Services/Snapshot/SnapshotService.cs b/src/FilterLists.Services/Snapshot/SnapshotService.cs index 4182461c0..ca5385b9b 100644 --- a/src/FilterLists.Services/Snapshot/SnapshotService.cs +++ b/src/FilterLists.Services/Snapshot/SnapshotService.cs @@ -54,6 +54,7 @@ await DbContext.FilterLists .OrderBy(l => l.Snapshots.Any()) .ThenBy(lastSnapTimestamp) .Take(batchSize) + .Include(l => l.Snapshots) .ToListAsync(); private async Task> CreateAndSaveSnaps(IEnumerable lists)