|
|
|
|
@ -66,7 +66,7 @@ actor ApiCallCollection<T: Storable>: SomeCallCollection { |
|
|
|
|
if FileManager.default.fileExists(atPath: fileURL.path()) { |
|
|
|
|
let jsonString: String = try FileUtils.readFile(fileURL: fileURL) |
|
|
|
|
let decoded: [ApiCall<T>] = try jsonString.decodeArray() ?? [] |
|
|
|
|
Logger.log("loaded \(fileURL.lastPathComponent) with \(decoded.count) items") |
|
|
|
|
// Logger.log("loaded \(fileURL.lastPathComponent) with \(decoded.count) items") |
|
|
|
|
self.items = decoded |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|