mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-24 04:03:03 -04:00
Revert
This commit is contained in:
parent
a69145e8a2
commit
f945b8042a
@ -221,8 +221,8 @@ final class DownloadService: NSObject, URLSessionDelegate, URLSessionTaskDelegat
|
||||
Task { @MainActor [weak progress] in
|
||||
progress?.resetFor(uuid: zimFileID)
|
||||
}
|
||||
let context = Database.shared.viewContext
|
||||
context.perform {
|
||||
Database.shared.performBackgroundTask { context in
|
||||
context.mergePolicy = NSMergePolicy.mergeByPropertyObjectTrump
|
||||
do {
|
||||
let request = DownloadTask.fetchRequest(fileID: zimFileID)
|
||||
guard let downloadTask = try context.fetch(request).first else { return }
|
||||
|
Loading…
x
Reference in New Issue
Block a user