From f584819b2a054f41b413fad8cddae5ea5119eecd Mon Sep 17 00:00:00 2001 From: Corey Date: Sun, 29 Aug 2021 19:26:52 -0400 Subject: [PATCH] Further preparation for .PATCH (#221) * Further preparation for .PATCH * Update .codecov.yml --- .codecov.yml | 2 +- Sources/ParseSwift/API/Responses.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: 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)") }