Skip to content

Commit

Permalink
Fix thread issue in aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
livid committed Aug 9, 2024
1 parent 7d98981 commit 616ed72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Planet/Entities/MyPlanetModel+Aggregate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,18 @@ extension MyPlanetModel {
debugPrint(
"Aggregation: updating \(article.id) title from \(existingArticle.title) to \(article.title)"
)
existingArticle.title = article.title
await MainActor.run {
existingArticle.title = article.title
}
changed = true
}
if existingArticle.content != article.content {
debugPrint(
"Aggregation: updating \(article.id) content from \(existingArticle.content) to \(article.content)"
)
existingArticle.content = article.content
await MainActor.run {
existingArticle.content = article.content
}
changed = true
}
let savedAttachments = await fetchArticleAttachments(
Expand Down
2 changes: 1 addition & 1 deletion Planet/versioning.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CURRENT_PROJECT_VERSION = 2190
CURRENT_PROJECT_VERSION = 2191

0 comments on commit 616ed72

Please sign in to comment.