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.
This commit is contained in:
Jackson Harper
2022-06-03 19:11:31 -07:00
parent 27a0b5f0a7
commit 24b0eebb1a

View File

@ -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
}
}