Change CloudKit error handling so that we still try to sync, even if we get some feed errors.

This commit is contained in:
Maurice Parker 2020-12-18 16:13:26 -06:00
parent e66cc89ed7
commit 110d68e4b2
1 changed files with 7 additions and 8 deletions

View File

@ -547,15 +547,14 @@ private extension CloudKitAccountDelegate {
case .success:
self.refreshProgress.completeTask()
self.combinedRefresh(account, webFeeds) { result in
switch result {
case .success:
self.sendArticleStatus(for: account, showProgress: true) { _ in
self.refreshProgress.clear()
account.metadata.lastArticleFetchEndTime = Date()
}
case .failure(let error):
self.sendArticleStatus(for: account, showProgress: true) { _ in
self.refreshProgress.clear()
fail(error)
if case .failure(let error) = result {
fail(error)
} else {
account.metadata.lastArticleFetchEndTime = Date()
completion(.success(()))
}
}
}
case .failure(let error):