Skip to content

Commit f584819

Browse files
authored
Further preparation for .PATCH (#221)
* Further preparation for .PATCH * Update .codecov.yml
1 parent f6b2230 commit f584819

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ coverage:
44
status:
55
patch:
66
default:
7-
target: 75
7+
target: 49
88
changes: false
99
project:
1010
default:

Sources/ParseSwift/API/Responses.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ internal struct WriteResponse: Codable {
6868
switch method {
6969
case .POST:
7070
return asSaveResponse().apply(to: object)
71-
case .PUT:
71+
case .PUT, .PATCH:
7272
return asUpdateResponse().apply(to: object)
7373
case .GET:
74-
fatalError("Parse-server doesn't support batch fetching like this. Look at \"fetchAll\".")
74+
fatalError("Parse-server doesn't support batch fetching like this. Try \"fetchAll\".")
7575
default:
7676
fatalError("There is no configured way to apply for method: \(method)")
7777
}

0 commit comments

Comments
 (0)