Modify updated records, not add them

This commit is contained in:
Maurice Parker 2020-04-27 23:39:08 -05:00
parent 06af9ef041
commit aa383a8814
1 changed files with 2 additions and 2 deletions

View File

@ -122,10 +122,10 @@ final class CloudKitArticlesZone: CloudKitZone {
newRecords.append(makeArticleRecord(article))
}
case (.new, false):
newRecords.append(makeStatusRecord(statusArticle))
modifyRecords.append(makeStatusRecord(statusArticle))
if let article = statusArticle.article {
if article.status.read == false || article.status.starred == true {
newRecords.append(makeArticleRecord(article))
modifyRecords.append(makeArticleRecord(article))
}
}
case (.starred, true), (.read, false):