update try? to try catch
@ -371,6 +371,11 @@ public class StoredCollection<T: Storable>: RandomAccessCollection, SomeCollecti
Logger.error(error)
}
self.resetApiCalls()
/// Removes the collection related API calls collection
public func resetApiCalls() {
if let apiCallsCollection = self.apiCallsCollection {
apiCallsCollection.reset()