Skip to content

Commit 6995bfe

Browse files
committed
[Chore] #193 - 테스트플라이트 업데이트를 위한 임시조치
1 parent a8b27b7 commit 6995bfe

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Neki-iOS/Features/Archive/Sources/Data/Sources/DTO/RegisterPhotoDTO.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ public enum RegisterPhotoDTO {
2222
public struct RegisterPhotoData: Encodable {
2323
let mediaID: Int
2424
let memo: String?
25+
let uploadMethod: String
2526

2627
enum CodingKeys: String, CodingKey {
2728
case mediaID = "mediaId"
2829
case memo
30+
case uploadMethod
2931
}
3032
}
3133

Neki-iOS/Features/Archive/Sources/Data/Sources/DefaultArchiveRepository.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final actor DefaultArchiveRepository: ArchiveRepository {
4242

4343
extension DefaultArchiveRepository {
4444
func registerPhoto(folderID: Int?, uploads: [(mediaID: Int, memo: String?)], favorite: Bool? = false) async throws {
45-
let uploadData = uploads.map { RegisterPhotoDTO.RegisterPhotoData(mediaID: $0.mediaID, memo: $0.memo) }
45+
let uploadData = uploads.map { RegisterPhotoDTO.RegisterPhotoData(mediaID: $0.mediaID, memo: $0.memo, uploadMethod: "QR") }
4646
let request = RegisterPhotoDTO.Request(folderID: folderID, uploads: uploadData, favorite: favorite)
4747
let endpoint = ArchiveEndpoint.registerPhoto(request: request)
4848
let _ = try await networkProvider.request(endpoint: endpoint)

0 commit comments

Comments
 (0)