Remove debugging code that is probably throwing off the sync state
This commit is contained in:
parent
b168cef88b
commit
60e5ea1946
|
@ -624,8 +624,6 @@ private extension CloudKitAccountDelegate {
|
||||||
|
|
||||||
group.notify(queue: DispatchQueue.main) {
|
group.notify(queue: DispatchQueue.main) {
|
||||||
|
|
||||||
newAndUpdatedArticles = newAndUpdatedArticles.subtracting(deletedArticles)
|
|
||||||
|
|
||||||
self.articlesZone.deleteArticles(deletedArticles) { _ in
|
self.articlesZone.deleteArticles(deletedArticles) { _ in
|
||||||
self.refreshProgress.completeTask()
|
self.refreshProgress.completeTask()
|
||||||
self.saveNewArticles(newAndUpdatedArticles) {
|
self.saveNewArticles(newAndUpdatedArticles) {
|
||||||
|
@ -697,8 +695,6 @@ private extension CloudKitAccountDelegate {
|
||||||
newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set<Article>())
|
newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set<Article>())
|
||||||
let deletedArticles = articleChanges.deletedArticles ?? Set<Article>()
|
let deletedArticles = articleChanges.deletedArticles ?? Set<Article>()
|
||||||
|
|
||||||
newAndUpdatedArticles = newAndUpdatedArticles.subtracting(deletedArticles)
|
|
||||||
|
|
||||||
self.articlesZone.deleteArticles(deletedArticles) { _ in
|
self.articlesZone.deleteArticles(deletedArticles) { _ in
|
||||||
self.refreshProgress.completeTask()
|
self.refreshProgress.completeTask()
|
||||||
self.articlesZone.saveNewArticles(newAndUpdatedArticles) { _ in
|
self.articlesZone.saveNewArticles(newAndUpdatedArticles) { _ in
|
||||||
|
@ -781,7 +777,6 @@ private extension CloudKitAccountDelegate {
|
||||||
var newAndUpdatedArticles = articleChanges.newArticles ?? Set<Article>()
|
var newAndUpdatedArticles = articleChanges.newArticles ?? Set<Article>()
|
||||||
newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set<Article>())
|
newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set<Article>())
|
||||||
let deletedArticles = articleChanges.deletedArticles ?? Set<Article>()
|
let deletedArticles = articleChanges.deletedArticles ?? Set<Article>()
|
||||||
newAndUpdatedArticles = newAndUpdatedArticles.subtracting(deletedArticles)
|
|
||||||
|
|
||||||
self.articlesZone.deleteArticles(deletedArticles) { _ in
|
self.articlesZone.deleteArticles(deletedArticles) { _ in
|
||||||
self.refreshProgress.completeTask()
|
self.refreshProgress.completeTask()
|
||||||
|
|
Loading…
Reference in New Issue