Reset any sync statuses that may be left around after a crash or force quit

This commit is contained in:
Maurice Parker
2020-04-27 19:21:49 -05:00
parent 0944264326
commit 1ce63860cf
3 changed files with 24 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ public struct SyncDatabase {
syncStatusTable.selectPendingStarredStatusArticleIDs(completion: completion)
}
public func resetAllSelectedForProcessing(completion: DatabaseCompletionBlock? = nil) {
syncStatusTable.resetAllSelectedForProcessing(completion: completion)
}
public func resetSelectedForProcessing(_ articleIDs: [String], completion: DatabaseCompletionBlock? = nil) {
syncStatusTable.resetSelectedForProcessing(articleIDs, completion: completion)
}