From bb86447451b0df66cf0faacc3565b1d96df30b68 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 30 May 2022 09:34:40 -0700 Subject: [PATCH] Fix params list on SavePage call --- .../Services/DataService/Mutations/SavePage.swift | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/SavePage.swift b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/SavePage.swift index b3ae4fc12..9f34c2268 100644 --- a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/SavePage.swift +++ b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/SavePage.swift @@ -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 { 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) + } ) }