From 1ac73a4bae3e76eb9ddf176f16ca538a6ea7ca15 Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Mon, 27 Aug 2018 19:31:58 -0500 Subject: [PATCH] Revert "cleanup orphaned rules" This reverts commit e22144010e4db7a16f0b41101d45daaf7ba60450. --- src/FilterLists.Services/Snapshot/SnapshotService.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/FilterLists.Services/Snapshot/SnapshotService.cs b/src/FilterLists.Services/Snapshot/SnapshotService.cs index e7dc270a9..dea8410c2 100644 --- a/src/FilterLists.Services/Snapshot/SnapshotService.cs +++ b/src/FilterLists.Services/Snapshot/SnapshotService.cs @@ -33,7 +33,6 @@ public async Task CaptureAsync(int batchSize) private async Task CleanupFailedSnapshots() { DbContext.RemoveRange(DbContext.SnapshotRules.Where(sr => !sr.Snapshot.WasSuccessful)); - DbContext.RemoveRange(DbContext.Rules.Where(r => !r.SnapshotRules.Any())); await DbContext.SaveChangesAsync(); }