diff --git a/Sources/manager/Controllers/ApodManagerController.swift b/Sources/manager/Controllers/ApodManagerController.swift index 4b56c29..765d66a 100644 --- a/Sources/manager/Controllers/ApodManagerController.swift +++ b/Sources/manager/Controllers/ApodManagerController.swift @@ -57,10 +57,10 @@ public class ApodManagerController { private func saveItems(_ items: [NasaApodDto]?) async throws { let itemsAdd: [ApodStorage] = items?.map { ApodStorage($0) } ?? [] - try storageController.saveItemsSql(itemsAdd) - self.items = try getAll()?.mapToEntity() - // for item in itemsAdd { - // try await storageController.asyncSaveItem(item) - // } + // try storageController.saveItemsSql(itemsAdd) + // self.items = try getAll()?.mapToEntity() + for item in itemsAdd { + try await storageController.asyncSaveItem(item) + } } }