Skip to content

Commit

Permalink
Merge pull request #85 from boostcampwm-2022/refactor/UserRepository
Browse files Browse the repository at this point in the history
Refactor/user repository (2)
  • Loading branch information
jinwoong16 committed Dec 6, 2022
2 parents ec32e91 + 7d19f88 commit 9a1f09f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ extension DefaultUserRepository: UserRepository {
.map { _ in true }
}
}

func fetchUser(by uuid: String) -> Observable<User> {
.just(User(uuid: "", nickName: "", profileURL: "", backgroundImageURL: "", description: "", allow: true))
return self.networkService.read(type: UserDTO.self,
userCase: .anotherUser(uuid),
access: .userInfo,
filter: nil)
.map { $0.toDomain() }
}
}

0 comments on commit 9a1f09f

Please sign in to comment.