diff --git a/SodaLive/Sources/Content/ContentRepository.swift b/SodaLive/Sources/Content/ContentRepository.swift index 6a14b61..0f71db3 100644 --- a/SodaLive/Sources/Content/ContentRepository.swift +++ b/SodaLive/Sources/Content/ContentRepository.swift @@ -74,6 +74,6 @@ final class ContentRepository { } func donation(contentId: Int, can: Int, comment: String) -> AnyPublisher { - return api.requestPublisher(.donation(request: AudioContentDonationRequest(audioContentId: contentId, donationCan: can, comment: comment))) + return api.requestPublisher(.donation(request: AudioContentDonationRequest(contentId: contentId, donationCan: can, comment: comment))) } } diff --git a/SodaLive/Sources/Content/Modify/ContentModifyViewModel.swift b/SodaLive/Sources/Content/Modify/ContentModifyViewModel.swift index f9fbce3..8777f9b 100644 --- a/SodaLive/Sources/Content/Modify/ContentModifyViewModel.swift +++ b/SodaLive/Sources/Content/Modify/ContentModifyViewModel.swift @@ -82,7 +82,7 @@ final class ContentModifyViewModel: ObservableObject { isLoading = true let request = ModifyContentRequest( - audioContentId: contentId, + contentId: contentId, title: title != audioContent!.title ? title : nil, detail: detail != audioContent!.detail ? detail : nil, isAdult: isAdult, diff --git a/SodaLive/Sources/Content/Modify/ModifyContentRequest.swift b/SodaLive/Sources/Content/Modify/ModifyContentRequest.swift index 31ccb02..77bc98d 100644 --- a/SodaLive/Sources/Content/Modify/ModifyContentRequest.swift +++ b/SodaLive/Sources/Content/Modify/ModifyContentRequest.swift @@ -8,7 +8,7 @@ import Foundation struct ModifyContentRequest: Encodable { - let audioContentId: Int + let contentId: Int let title: String? let detail: String? let isAdult: Bool