diff --git a/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Root/RouteCollections/Tunnel/Connection/Models/ConnectionModelError.swift b/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Root/RouteCollections/Tunnel/Connection/Models/ConnectionModelError.swift index 53c1020..54e685b 100644 --- a/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Root/RouteCollections/Tunnel/Connection/Models/ConnectionModelError.swift +++ b/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Root/RouteCollections/Tunnel/Connection/Models/ConnectionModelError.swift @@ -15,7 +15,6 @@ enum ConnectionModelError: String, Error { case signatureGenerationFailed case nodeIsOffline case balanceUpdateFailed - case noSelectedNode case noSubscription case noQuotaLeft case tunnelIsAlreadyActive @@ -28,8 +27,6 @@ enum ConnectionModelError: String, Error { return .init(code: 500, message: self.rawValue) case .balanceUpdateFailed: return .init(code: 500, message: self.rawValue) - case .noSelectedNode: - return .init(code: 404, message: self.rawValue) case .noSubscription: return .init(code: 404, message: self.rawValue) case .noQuotaLeft: diff --git a/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Root/RouteCollections/Tunnel/PostConnectionRequest.swift b/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Root/RouteCollections/Tunnel/PostConnectionRequest.swift index 39e4e54..01bbe0d 100644 --- a/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Root/RouteCollections/Tunnel/PostConnectionRequest.swift +++ b/SolardVPNCommunityCoreiOS/SOLARdVPNCommunityCoreiOS/Root/RouteCollections/Tunnel/PostConnectionRequest.swift @@ -19,6 +19,6 @@ struct PostConnectionRequest: Codable { extension PostConnectionRequest { enum CodingKeys: String, CodingKey { - case nodeAddress = "node_address" + case nodeAddress } }