Skip to content

Commit

Permalink
Fix cache isn't stored from local sun time data source
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirBrejcha committed Jul 25, 2023
1 parent 376f7e3 commit f51c0cb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit f51c0cb

Please sign in to comment.