Skip to content

Commit

Permalink
[refactor] #129 ContentListFeature 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Oct 6, 2024
1 parent 19809c8 commit 0dfe4f3
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,15 @@ private extension ContentListFeature {
return contentListFetch(state: &state)
case .컨텐츠_개수_조회_API:
return .run { [ contentType = state.contentType ] send in
let count: Int
switch contentType {
case .favorite:
let count = try await remindClient.즐겨찾기_컨텐츠_개수_조회().count
await send(.inner(.컨텐츠_개수_업데이트(count)), animation: .pokitSpring)
count = try await remindClient.즐겨찾기_컨텐츠_개수_조회().count
case .unread:
let count = try await remindClient.읽지않음_컨텐츠_개수_조회().count
await send(.inner(.컨텐츠_개수_업데이트(count)), animation: .pokitSpring)
count = try await remindClient.읽지않음_컨텐츠_개수_조회().count
}

await send(.inner(.컨텐츠_개수_업데이트(count)), animation: .pokitSpring)
}
}
}
Expand Down

0 comments on commit 0dfe4f3

Please sign in to comment.