Change so that we fire off status update immediately if the number of pending status changes exceeds 100. Issue #658

This commit is contained in:
Maurice Parker
2019-05-27 12:03:12 -05:00
parent fcb2fa3ebc
commit 61f9a66d74
3 changed files with 25 additions and 0 deletions

View File

@@ -31,6 +31,10 @@ public final class SyncDatabase {
return syncStatusTable.selectForProcessing()
}
public func selectPendingCount() -> Int {
return syncStatusTable.selectPendingCount()
}
public func resetSelectedForProcessing(_ articleIDs: [String]) {
syncStatusTable.resetSelectedForProcessing(articleIDs)
}