mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-09 05:18:40 +02:00
support multiple servers
This commit is contained in:
@@ -17,6 +17,11 @@ class ServerConnectionConfig: Object {
|
||||
@Persisted var username: String
|
||||
@Persisted var token: String
|
||||
}
|
||||
class ServerConnectionConfigActiveIndex: Object {
|
||||
// This could overflow, but you really would have to try
|
||||
@Persisted var index: Int?
|
||||
|
||||
}
|
||||
|
||||
func convertServerConnectionConfigToJSON(config: ServerConnectionConfig) -> Dictionary<String, Any> {
|
||||
return Database.realmQueue.sync {
|
||||
|
||||
Reference in New Issue
Block a user