Revert "cleanup orphaned rules"

This reverts commit e22144010e.
This commit is contained in:
Collin Barrett 2018-08-27 19:31:58 -05:00
parent e22144010e
commit 1ac73a4bae

View file

@ -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();
}