diff --git a/apple/OmnivoreKit/Sources/App/AppExtensions/Intents/SavePasteboardToOmnivore.swift b/apple/OmnivoreKit/Sources/App/AppExtensions/Intents/SavePasteboardToOmnivore.swift index 6737748db..502c2e244 100644 --- a/apple/OmnivoreKit/Sources/App/AppExtensions/Intents/SavePasteboardToOmnivore.swift +++ b/apple/OmnivoreKit/Sources/App/AppExtensions/Intents/SavePasteboardToOmnivore.swift @@ -25,7 +25,7 @@ struct SaveLinkToOmnivoreIntent: AppIntent { do { let services = Services() let requestId = UUID().uuidString.lowercased() - let saveResult = try await services.dataService.saveURL(id: requestId, url: link.absoluteString) + _ = try await services.dataService.saveURL(id: requestId, url: link.absoluteString) return .result(dialog: "Link saved to Omnivore") } catch { diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationDevicesView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationDevicesView.swift index b334cea50..a4743c16a 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationDevicesView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationDevicesView.swift @@ -20,7 +20,7 @@ import Views func removeToken(dataService: DataService, tokenID: String) { if let idx = devices.firstIndex(where: { $0.id == tokenID }) { Task { - try await dataService.syncDeviceToken(deviceTokenOperation: .deleteToken(tokenID: tokenID)) + _ = try await dataService.syncDeviceToken(deviceTokenOperation: .deleteToken(tokenID: tokenID)) devices.remove(at: idx) } } diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationSettingsView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationSettingsView.swift index 330291138..3ad069694 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationSettingsView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationSettingsView.swift @@ -28,7 +28,7 @@ import Views self.desiredNotificationsEnabled = granted Task { if let savedToken = UserDefaults.standard.string(forKey: UserDefaultKey.firebasePushToken.rawValue) { - try? await dataService.syncDeviceToken( + _ = try? await dataService.syncDeviceToken( deviceTokenOperation: DeviceTokenOperation.addToken(token: savedToken)) } NotificationCenter.default.post(name: Notification.Name("ReconfigurePushNotifications"), object: nil) diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Queries/Devices.swift b/apple/OmnivoreKit/Sources/Services/DataService/Queries/Devices.swift index cd9732466..d0139572d 100644 --- a/apple/OmnivoreKit/Sources/Services/DataService/Queries/Devices.swift +++ b/apple/OmnivoreKit/Sources/Services/DataService/Queries/Devices.swift @@ -34,7 +34,6 @@ public extension DataService { let path = appEnvironment.graphqlPath let headers = networker.defaultHeaders - let context = backgroundContext return try await withCheckedThrowingContinuation { continuation in send(query, to: path, headers: headers) { queryResult in