fix(creator): 채널 홈 응답 모델을 맞춘다

This commit is contained in:
Yu Sung
2026-07-02 18:31:05 +09:00
parent cd55b3e2f5
commit 1a7368d2a4
2 changed files with 32 additions and 29 deletions

View File

@@ -33,6 +33,10 @@ final class CreatorChannelViewModel: ObservableObject {
guard let self else { return }
do {
if let jsonString = String(data: response.data, encoding: .utf8) {
DEBUG_LOG("CreatorChannelHome raw response: \(jsonString)")
}
let jsonDecoder = JSONDecoder()
let decoded = try jsonDecoder.decode(ApiResponse<CreatorChannelHomeResponse>.self, from: response.data)
@@ -48,6 +52,7 @@ final class CreatorChannelViewModel: ObservableObject {
}
} catch {
ERROR_LOG(error.localizedDescription)
print(error)
self.applyApiFailedPlaceholderState()
}