From f51c0cbf3a43aa06bdf67bac1c78a8f14ea2d1cb Mon Sep 17 00:00:00 2001 From: Vladimir Brejcha Date: Tue, 25 Jul 2023 15:10:50 +0800 Subject: [PATCH] Fix cache isn't stored from local sun time data source --- DataLayer/Sources/DataLayer/SunTime/SunTimeRepositoryImpl.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/DataLayer/Sources/DataLayer/SunTime/SunTimeRepositoryImpl.swift b/DataLayer/Sources/DataLayer/SunTime/SunTimeRepositoryImpl.swift index 0e30b2b..6c740b7 100644 --- a/DataLayer/Sources/DataLayer/SunTime/SunTimeRepositoryImpl.swift +++ b/DataLayer/Sources/DataLayer/SunTime/SunTimeRepositoryImpl.swift @@ -34,6 +34,7 @@ final class SunTimeRepositoryImpl: SunTimeRepository { let localResult = try localDataSource.getSunTimes(for: dates) if (localResult.count == dates.count) { log(.info, "found stored sunTimes: \(localResult)") + cached = Cache(items: (localResult, legal)) return .success((localResult, legal)) }