File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Projects/CoreKit/Sources/Data/Network/Content Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ import Moya
1010
1111extension 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) )
You can’t perform that action at this time.
0 commit comments