From 9c6355420b1e92dd9612100a581d0b676bf55c0e Mon Sep 17 00:00:00 2001 From: Eric Andrews Date: Thu, 5 Oct 2023 18:37:23 -0400 Subject: [PATCH] renamed getDetails to loadDetails to reduce merge conflicts --- Mlem/Repositories/PersonRepository.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mlem/Repositories/PersonRepository.swift b/Mlem/Repositories/PersonRepository.swift index 34064a385..ed3dabf43 100644 --- a/Mlem/Repositories/PersonRepository.swift +++ b/Mlem/Repositories/PersonRepository.swift @@ -29,10 +29,11 @@ class PersonRepository { return users } + // TODO: rename to loadUser /// Gets the UserModel for a given user /// - Parameter id: id of the user to get /// - Returns: UserModel for the given user - func getUser(for id: Int) async throws -> UserModel { + func loadDetails(for id: Int) async throws -> UserModel { let response = try await apiClient.getPersonDetails(for: id, limit: 1, savedOnly: false) return UserModel(from: response.personView) }