@@ -32,7 +32,6 @@ extension ParseConfigCodable {
32
32
public static func fetch( options: API . Options = [ ] ,
33
33
callbackQueue: DispatchQueue = . main,
34
34
completion: @escaping ( Result < [ String : V ] , ParseError > ) -> Void ) {
35
-
36
35
Task {
37
36
var options = options
38
37
options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
@@ -44,7 +43,6 @@ extension ParseConfigCodable {
44
43
}
45
44
46
45
internal static func fetchCommand( ) async -> API . NonParseBodyCommand < [ String : V ] , [ String : V ] > {
47
-
48
46
return API . NonParseBodyCommand ( method: . GET,
49
47
path: . config) { ( data) -> [ String : V ] in
50
48
let fetched = try ParseCoding
@@ -54,6 +52,7 @@ extension ParseConfigCodable {
54
52
return fetched
55
53
}
56
54
}
55
+
57
56
}
58
57
59
58
// MARK: Update
@@ -73,7 +72,6 @@ extension ParseConfigCodable {
73
72
options: API . Options = [ ] ,
74
73
callbackQueue: DispatchQueue = . main,
75
74
completion: @escaping ( Result < Bool , ParseError > ) -> Void ) {
76
-
77
75
Task {
78
76
var options = options
79
77
options. insert ( . usePrimaryKey)
@@ -87,7 +85,6 @@ extension ParseConfigCodable {
87
85
88
86
// swiftlint:disable:next line_length
89
87
internal static func updateCommand( _ config: [ String : V ] ) async -> API . NonParseBodyCommand < ConfigCodableUpdateBody < [ String : V ] > , Bool > {
90
-
91
88
let body = ConfigCodableUpdateBody ( params: config)
92
89
return API . NonParseBodyCommand ( method: . PUT, // MARK: Should be switched to ".PATCH" when server supports PATCH.
93
90
path: . config,
@@ -100,6 +97,7 @@ extension ParseConfigCodable {
100
97
return updated
101
98
}
102
99
}
100
+
103
101
}
104
102
105
103
// MARK: Current
0 commit comments