mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix params list on SavePage call
This commit is contained in:
parent
a17cb72527
commit
bb86447451
1 changed files with 8 additions and 5 deletions
|
|
@ -12,16 +12,19 @@ public extension DataService {
|
|||
}
|
||||
|
||||
let input = InputObjects.SavePageInput(
|
||||
url: requestId,
|
||||
source: html,
|
||||
clientRequestId: "ios-page",
|
||||
url: pageScrapePayload.url,
|
||||
source: "ios-page",
|
||||
clientRequestId: requestId,
|
||||
title: OptionalArgument(title),
|
||||
originalContent: pageScrapePayload.url
|
||||
originalContent: html
|
||||
)
|
||||
|
||||
let selection = Selection<MutationResult, Unions.SaveResult> {
|
||||
try $0.on(
|
||||
saveSuccess: .init { .saved(requestId: requestId, url: (try? $0.url()) ?? "") }, saveError: .init { .error(errorCode: (try? $0.errorCodes().first) ?? .unknown) }
|
||||
saveSuccess: .init { .saved(requestId: requestId, url: (try? $0.url()) ?? "") },
|
||||
saveError: .init {
|
||||
.error(errorCode: (try? $0.errorCodes().first) ?? .unknown)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue