update to generate XLR version of objects

multistore
Razmig Sarkissian 2 years ago
parent 669ce8b5ad
commit db67bca0d0
  1. 1
      LeStorage/Services.swift
  2. 3
      LeStorage/StoredCollection.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)
}

@ -390,7 +390,8 @@ public class StoredCollection<T: Storable>: RandomAccessCollection, SomeCollecti
}
fileprivate func _rescheduleApiCalls() {
return
guard let apiCallsCollection, apiCallsCollection.isNotEmpty else {
return
}

Loading…
Cancel
Save