From ac7b1a569d5b49a094d18ccc1b830b92bd7c89af Mon Sep 17 00:00:00 2001 From: Corey Date: Sun, 29 Aug 2021 18:15:28 -0400 Subject: [PATCH 1/2] Further preparation for .PATCH --- Sources/ParseSwift/API/Responses.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ParseSwift/API/Responses.swift b/Sources/ParseSwift/API/Responses.swift index 4406582cb..1a4e9e989 100644 --- a/Sources/ParseSwift/API/Responses.swift +++ b/Sources/ParseSwift/API/Responses.swift @@ -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)") } From ea754ada9bc8f2f49be05ce9bc75a15b11739814 Mon Sep 17 00:00:00 2001 From: Corey Date: Sun, 29 Aug 2021 19:12:37 -0400 Subject: [PATCH 2/2] Update .codecov.yml --- .codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codecov.yml b/.codecov.yml index 6ce36ed3d..5f226e7a9 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -4,7 +4,7 @@ coverage: status: patch: default: - target: 75 + target: 49 changes: false project: default: