mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor method name
This commit is contained in:
parent
8753a0ead4
commit
d408610d84
1 changed files with 2 additions and 2 deletions
|
|
@ -19,13 +19,13 @@ public SnapshotService(FilterListsDbContext dbContext)
|
|||
|
||||
public async Task CaptureAsync(int batchSize)
|
||||
{
|
||||
RollbackIncompletedSnapshot();
|
||||
RollbackIncompletedSnapshots();
|
||||
var lists = await GetListsToCapture(batchSize);
|
||||
var snapshots = GetSnapshots(lists);
|
||||
await SaveSnapshots(snapshots);
|
||||
}
|
||||
|
||||
private void RollbackIncompletedSnapshot()
|
||||
private void RollbackIncompletedSnapshots()
|
||||
{
|
||||
var incompleteSnapshots = dbContext.Snapshots.Where(ss => ss.IsCompleted == false);
|
||||
dbContext.Snapshots.RemoveRange(incompleteSnapshots);
|
||||
|
|
|
|||
Loading…
Reference in a new issue