Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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