Skip to content

Commit

Permalink
Further preparation for .PATCH (#221)
Browse files Browse the repository at this point in the history
* Further preparation for .PATCH

* Update .codecov.yml
  • Loading branch information
cbaker6 authored Aug 29, 2021
1 parent f6b2230 commit f584819
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ coverage:
status:
patch:
default:
target: 75
target: 49
changes: false
project:
default:
Expand Down
4 changes: 2 additions & 2 deletions Sources/ParseSwift/API/Responses.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ internal struct WriteResponse: Codable {
switch method {
case .POST:
return asSaveResponse().apply(to: object)
case .PUT:
case .PUT, .PATCH:
return asUpdateResponse().apply(to: object)
case .GET:
fatalError("Parse-server doesn't support batch fetching like this. Look at \"fetchAll\".")
fatalError("Parse-server doesn't support batch fetching like this. Try \"fetchAll\".")
default:
fatalError("There is no configured way to apply for method: \(method)")
}
Expand Down

0 comments on commit f584819

Please sign in to comment.