Skip to content

Commit a2d3436

Browse files
committed
[chore] #208 amplitude 링크 저장 트리거 변경
1 parent 1d8e15e commit a2d3436

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Projects/CoreKit/Sources/Data/Network/Content/ContentClient+LiveKey.swift

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ import Moya
1010

1111
extension ContentClient: DependencyKey {
1212
public static let liveValue: Self = {
13-
@Dependency(\.amplitude.track) var amplitudeTrack
1413
let provider = MoyaProvider<ContentEndpoint>.build()
15-
14+
1615
return Self(
1716
컨텐츠_삭제: { id in
1817
try await provider.requestNoBody(.컨텐츠_삭제(contentId: id))
@@ -24,13 +23,7 @@ extension ContentClient: DependencyKey {
2423
try await provider.request(.컨텐츠_수정(contentId: id, model: model))
2524
},
2625
컨텐츠_추가: { model in
27-
let response: ContentDetailResponse
28-
response = try await provider.request(.컨텐츠_추가(model: model))
29-
amplitudeTrack(.add_link(
30-
folderId: "\(response.category.categoryId)",
31-
linkDomain: response.data
32-
))
33-
return response
26+
try await provider.request(.컨텐츠_추가(model: model))
3427
},
3528
즐겨찾기: { id in
3629
try await provider.request(.즐겨찾기(contentId: id))

0 commit comments

Comments
 (0)