mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-29 07:58:43 +02:00
Fix the downloader for using Realm native
This commit is contained in:
@@ -164,11 +164,6 @@ class Database {
|
||||
return try! realm.write { realm.add(downloadItem, update: .modified) }
|
||||
}
|
||||
|
||||
public func updateDownloadItemPart(_ part: DownloadItemPart) {
|
||||
let realm = try! Realm()
|
||||
return try! realm.write { realm.add(part, update: .modified) }
|
||||
}
|
||||
|
||||
public func removeDownloadItem(_ downloadItem: DownloadItem) {
|
||||
let realm = try! Realm()
|
||||
return try! realm.write { realm.delete(downloadItem) }
|
||||
|
||||
Reference in New Issue
Block a user