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