fix crash on deleteApiCall

multistore
Razmig Sarkissian 2 years ago
parent db67bca0d0
commit f3aa070736
  1. 2
      LeStorage/Services.swift

@ -104,8 +104,10 @@ public class Services {
case 200...300:
if let apiCallId,
let collectionName = (T.self as? any Storable.Type)?.resourceName() {
try await MainActor.run {
try Store.main.deleteApiCallById(apiCallId, collectionName: collectionName)
}
}
default:
if let apiCallId, let type = (T.self as? any Storable.Type) {
try Store.main.rescheduleApiCall(id: apiCallId, type: type)

Loading…
Cancel
Save