mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 19:29:41 +00:00
Add missing post sync database updates.
This commit is contained in:
1 parent
694be77e96
commit
9ffaa41d35
1 file changed
+2
@@ -124,9 +124,11 @@ final class CloudKitAccountDelegate: AccountDelegate {
|
||||
self.articlesZone.sendArticleStatus(syncStatuses) { result in
|
||||
switch result {
|
||||
case .success:
|
||||
self.database.deleteSelectedForProcessing(syncStatuses.map({ $0.articleID }) )
|
||||
os_log(.debug, log: self.log, "Done sending article statuses.")
|
||||
completion(.success(()))
|
||||
case .failure(let error):
|
||||
self.database.resetSelectedForProcessing(syncStatuses.map({ $0.articleID }) )
|
||||
completion(.failure(error))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user