Skip to content

Commit

Permalink
[Fix/#104] 빌드 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe0929 committed Nov 27, 2024
1 parent ed986c4 commit e3177d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Networks
extension GetChallengeResult {
public func toEntity() -> ChallengeDetail {
.init(
statuses: statuses,
statuses: statuses.map{ PointStatusEnum(rawValue: $0) ?? .none},
todayIndex: todayIndex,
startDate: startDate,
challengeInfo: .init(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ public protocol ChallengeServiceType {
}

extension ChallengeService: ChallengeServiceType {

public func getDailyChallenge() -> AnyPublisher<DailyChallengeResult, HMHNetworkError> {
return requestWithResult(.getdailyChallenge)
}

public func getSuccesChallenge() -> AnyPublisher<ChallengeSuccessResult, HMHNetworkError> {
public func postSuccesChallenge(request: ChallengeSuccessRequest) -> AnyPublisher<ChallengeSuccessResult, HMHNetworkError> {
return requestWithResult(.postSuccesChallenge)
}

Expand Down Expand Up @@ -65,7 +66,7 @@ public struct StubChallengeService: ChallengeServiceType {
.eraseToAnyPublisher()
}

public func getSuccesChallenge() -> AnyPublisher<ChallengeSuccessResult, HMHNetworkError> {
public func postSuccesChallenge(request: ChallengeSuccessRequest) -> AnyPublisher<ChallengeSuccessResult, HMHNetworkError> {
return Just(.stub)
.setFailureType(to: HMHNetworkError.self)
.eraseToAnyPublisher()
Expand Down

0 comments on commit e3177d2

Please sign in to comment.