From 24b0eebb1a88a1cdb9230d3119a8f9398f0ea118 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 3 Jun 2022 19:11:31 -0700 Subject: [PATCH] Dont create a stub entry when creating a file save request on iOS This isnt needed on the backend anymore because the client will create its own entry. --- .../Sources/Services/DataService/Mutations/SavePDF.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/SavePDF.swift b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/SavePDF.swift index 624448872..22017a74d 100644 --- a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/SavePDF.swift +++ b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/SavePDF.swift @@ -19,7 +19,7 @@ public extension DataService { let input = InputObjects.UploadFileRequestInput( clientRequestId: OptionalArgument(id), contentType: "application/pdf", - createPageEntry: OptionalArgument(true), + createPageEntry: OptionalArgument(false), url: url ) @@ -85,7 +85,6 @@ public extension DataService { return try await withCheckedThrowingContinuation { continuation in let task = networker.urlSession.uploadTask(with: request, fromFile: localPdfURL) { _, response, _ in - print("UPLOAD RESPONSE", response) if let httpResponse = response as? HTTPURLResponse, 200 ... 299 ~= httpResponse.statusCode { continuation.resume() } else { @@ -107,7 +106,6 @@ public extension DataService { return task } else { // TODO: How should we handle this scenario? - print("NOT UPLOADING PDF DOCUMENT YET") return nil } }