diff --git a/LeStorage/Services.swift b/LeStorage/Services.swift index cde7f94..139bf1b 100644 --- a/LeStorage/Services.swift +++ b/LeStorage/Services.swift @@ -278,9 +278,7 @@ public class Services { /// - Parameters: /// - user: A user instance to send to the server public func createAccount(user: U) async throws -> V { - let response: V = try await _runRequest(serviceConf: .createAccount, payload: user) -// Store.main.setUserName(user.username) - return response + return try await _runRequest(serviceConf: .createAccount, payload: user) } /// Requests a token for a username and password