Skip to content

Commit ac7b1a5

Browse files
committed
Further preparation for .PATCH
1 parent f6b2230 commit ac7b1a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)