mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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:
parent
27a0b5f0a7
commit
24b0eebb1a
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue