Skip to content

Commit

Permalink
renamed getDetails to loadDetails to reduce merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBAndrews committed Oct 6, 2023
1 parent 059a36c commit 9c63554
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mlem/Repositories/PersonRepository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 9c63554

Please sign in to comment.