From db67bca0d0a4631347db0ebce6da8df47215759b Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Tue, 12 Mar 2024 11:10:47 +0100 Subject: [PATCH] update to generate XLR version of objects --- LeStorage/Services.swift | 1 + LeStorage/StoredCollection.swift | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/LeStorage/Services.swift b/LeStorage/Services.swift index 1e69205..5e9ac20 100644 --- a/LeStorage/Services.swift +++ b/LeStorage/Services.swift @@ -110,6 +110,7 @@ public class Services { if let apiCallId, let type = (T.self as? any Storable.Type) { try Store.main.rescheduleApiCall(id: apiCallId, type: type) } + Logger.log("Failed Run \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")") let dataString = String(describing: String(data: task.0, encoding: .utf8)) throw ServiceError.responseError(response: dataString) } diff --git a/LeStorage/StoredCollection.swift b/LeStorage/StoredCollection.swift index a16c971..0904ece 100644 --- a/LeStorage/StoredCollection.swift +++ b/LeStorage/StoredCollection.swift @@ -390,7 +390,8 @@ public class StoredCollection: RandomAccessCollection, SomeCollecti } fileprivate func _rescheduleApiCalls() { - + return + guard let apiCallsCollection, apiCallsCollection.isNotEmpty else { return }