mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-28 06:14:00 +02:00
Fix id typos
This commit is contained in:
@@ -87,7 +87,7 @@ public class AbsDatabase: CAPPlugin {
|
|||||||
|
|
||||||
@objc func getLocalLibraryItem(_ call: CAPPluginCall) {
|
@objc func getLocalLibraryItem(_ call: CAPPluginCall) {
|
||||||
do {
|
do {
|
||||||
let item = Database.shared.getLocalLibraryItemByLLId(libraryItem: call.getString("id") ?? "")
|
let item = Database.shared.getLocalLibraryItem(localLibraryItem: call.getString("id") ?? "")
|
||||||
switch item {
|
switch item {
|
||||||
case .some(let foundItem):
|
case .some(let foundItem):
|
||||||
call.resolve(try foundItem.asDictionary())
|
call.resolve(try foundItem.asDictionary())
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import Foundation
|
|||||||
import RealmSwift
|
import RealmSwift
|
||||||
|
|
||||||
class LocalLibraryItem: Object, Encodable {
|
class LocalLibraryItem: Object, Encodable {
|
||||||
@Persisted(primaryKey: true) var id: String = UUID().uuidString
|
@Persisted(primaryKey: true) var id: String = "local_\(UUID().uuidString)"
|
||||||
@Persisted var basePath: String = ""
|
@Persisted var basePath: String = ""
|
||||||
@Persisted var absolutePath: String = ""
|
@Persisted var absolutePath: String = ""
|
||||||
@Persisted var contentUrl: String
|
@Persisted var contentUrl: String
|
||||||
|
|||||||
Reference in New Issue
Block a user