mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-11-23 08:44:21 +01:00
Remove blocking realmQueue
This commit is contained in:
1 parent
849b6303e8
commit
ad802c16ea
4 files changed
+102
-143
No files matched your search
@@ -37,15 +37,13 @@ struct ServerConnectionConfigActiveIndex: Realmable {
|
||||
}
|
||||
|
||||
func convertServerConnectionConfigToJSON(config: ServerConnectionConfig) -> Dictionary<String, Any> {
|
||||
return Database.realmQueue.sync {
|
||||
return [
|
||||
"id": config.id,
|
||||
"name": config.name,
|
||||
"index": config.index,
|
||||
"address": config.address,
|
||||
"userId": config.userId,
|
||||
"username": config.username,
|
||||
"token": config.token,
|
||||
]
|
||||
}
|
||||
return [
|
||||
"id": config.id,
|
||||
"name": config.name,
|
||||
"index": config.index,
|
||||
"address": config.address,
|
||||
"userId": config.userId,
|
||||
"username": config.username,
|
||||
"token": config.token,
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user